Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1415)

Unified Diff: components/cronet/android/java/src/org/chromium/net/impl/CronetUrlRequestContext.java

Issue 2848903003: Cronet: fix flaky Http2Test#testHttp2 (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/android/java/src/org/chromium/net/impl/CronetUrlRequestContext.java
diff --git a/components/cronet/android/java/src/org/chromium/net/impl/CronetUrlRequestContext.java b/components/cronet/android/java/src/org/chromium/net/impl/CronetUrlRequestContext.java
index f3c95b6904e95ed7839c52f7ef4b640f79c1b8a5..c20db8d21615404c146b892bbb3b11c618410d4f 100644
--- a/components/cronet/android/java/src/org/chromium/net/impl/CronetUrlRequestContext.java
+++ b/components/cronet/android/java/src/org/chromium/net/impl/CronetUrlRequestContext.java
@@ -140,7 +140,7 @@ public class CronetUrlRequestContext extends CronetEngineBase {
/** Holds CertVerifier data. */
private String mCertVerifierData;
- private ConditionVariable mStopNetLogCompleted;
+ private volatile ConditionVariable mStopNetLogCompleted;
/**
* True if a NetLog observer is active.
@@ -297,9 +297,9 @@ public class CronetUrlRequestContext extends CronetEngineBase {
return;
}
checkHaveAdapter();
+ mStopNetLogCompleted = new ConditionVariable();
nativeStopNetLog(mUrlRequestContextAdapter);
mIsLogging = false;
- mStopNetLogCompleted = new ConditionVariable();
}
mStopNetLogCompleted.block();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698