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

Unified Diff: components/cronet/ios/cronet_environment.cc

Issue 2056443002: Manual refactor to enum-based WaitableEvent for remaining mac/ios files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@d_1_explicit_bools
Patch Set: Created 4 years, 6 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
Index: components/cronet/ios/cronet_environment.cc
diff --git a/components/cronet/ios/cronet_environment.cc b/components/cronet/ios/cronet_environment.cc
index 8f6fd6779f98ebca666cb1576c4f16a704898819..96eacd2ddcd07060f72b81718ac44a1f4010f40c 100644
--- a/components/cronet/ios/cronet_environment.cc
+++ b/components/cronet/ios/cronet_environment.cc
@@ -169,7 +169,9 @@ void CronetEnvironment::StartNetLogOnNetworkThread(
}
void CronetEnvironment::StopNetLog() {
- base::WaitableEvent log_stopped_event(true, false);
+ base::WaitableEvent log_stopped_event(
+ base::WaitableEvent::ResetPolicy::MANUAL,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
PostToNetworkThread(FROM_HERE,
base::Bind(&CronetEnvironment::StopNetLogOnNetworkThread,
base::Unretained(this), &log_stopped_event));

Powered by Google App Engine
This is Rietveld 408576698