Skip to content

Commit

Permalink
Set network tag in CronetHttpStack
Browse files Browse the repository at this point in the history
  • Loading branch information
jbiral committed Nov 29, 2023
2 parents cda470c + a5ef749 commit 67f7639
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cronet/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
dependencies {
api project(":core")
compileOnly "androidx.annotation:annotation:1.0.1"
compileOnly "org.chromium.net:cronet-embedded:76.3809.111"
compileOnly "org.chromium.net:cronet-embedded:113.5672.61"

testImplementation project(":testing")
testImplementation "org.chromium.net:cronet-embedded:76.3809.111"
testImplementation "org.chromium.net:cronet-embedded:113.5672.61"
testImplementation "junit:junit:4.12"
testImplementation "org.mockito:mockito-core:2.19.0"
testImplementation "org.robolectric:robolectric:4.8.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ public void onFailed(
.newUrlRequestBuilder(url, urlCallback, getNonBlockingExecutor())
.allowDirectExecutor()
.disableCache()
.setPriority(getPriority(request));
.setPriority(getPriority(request))
.setTrafficStatsTag(request.getTrafficStatsTag());
// request.getHeaders() may be blocking, so submit it to the blocking executor.
getBlockingExecutor()
.execute(
Expand Down

0 comments on commit 67f7639

Please sign in to comment.