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

Unified Diff: chrome/browser/sync/test/integration/extension_settings_helper.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/sync/test/integration/extension_settings_helper.cc
diff --git a/chrome/browser/sync/test/integration/extension_settings_helper.cc b/chrome/browser/sync/test/integration/extension_settings_helper.cc
index 15dc763d30516d670748770983621660b199e2b9..521f813e1d9227992554bfa46a6c1d892d4e753f 100644
--- a/chrome/browser/sync/test/integration/extension_settings_helper.cc
+++ b/chrome/browser/sync/test/integration/extension_settings_helper.cc
@@ -47,7 +47,8 @@ void GetAllSettingsOnFileThread(base::DictionaryValue* out,
std::unique_ptr<base::DictionaryValue> GetAllSettings(Profile* profile,
const std::string& id) {
- base::WaitableEvent signal(false, false);
+ base::WaitableEvent signal(base::WaitableEvent::ResetPolicy::AUTOMATIC,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
std::unique_ptr<base::DictionaryValue> settings(new base::DictionaryValue());
extensions::StorageFrontend::Get(profile)->RunWithStorage(
ExtensionRegistry::Get(profile)->enabled_extensions().GetByID(id),
@@ -99,7 +100,8 @@ void SetExtensionSettings(
Profile* profile,
const std::string& id,
const base::DictionaryValue& settings) {
- base::WaitableEvent signal(false, false);
+ base::WaitableEvent signal(base::WaitableEvent::ResetPolicy::AUTOMATIC,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
extensions::StorageFrontend::Get(profile)->RunWithStorage(
ExtensionRegistry::Get(profile)->enabled_extensions().GetByID(id),
extensions::settings_namespace::SYNC,

Powered by Google App Engine
This is Rietveld 408576698