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

Unified Diff: chrome/browser/net/predictor.cc

Issue 2021393004: Migrate WaitableEvent to enum-based constructor in chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WEvent_enums
Patch Set: Split out custom changes to thread_watcher_unittest.cc Created 4 years, 7 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: chrome/browser/net/predictor.cc
diff --git a/chrome/browser/net/predictor.cc b/chrome/browser/net/predictor.cc
index 4904ec17df74b39a597568dc356f7dc0ebe1bef6..f04d2d0ef3c9450a923aa1c9f8cb2808f77d09f3 100644
--- a/chrome/browser/net/predictor.cc
+++ b/chrome/browser/net/predictor.cc
@@ -794,7 +794,9 @@ void Predictor::SaveStateForNextStartupAndTrim() {
if (!CanPreresolveAndPreconnect())
return;
- base::WaitableEvent completion(true, false);
+ base::WaitableEvent completion(
+ base::WaitableEvent::ResetPolicy::MANUAL,
Nico 2016/06/04 01:48:18 if this must be an enum class i feel it shouldn't
gab 2016/06/04 11:45:20 We thought about that [1] but decided to go this r
Nico 2016/06/04 16:33:56 I submit that if every step along the way seems to
gab 2016/06/04 19:03:22 Hmm, do you have a specific counterproposal? I'm h
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
ListPrefUpdate update_startup_list(user_prefs_,
prefs::kDnsPrefetchingStartupList);
« no previous file with comments | « chrome/browser/extensions/extension_messages_apitest.cc ('k') | chrome/browser/password_manager/native_backend_gnome_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698