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

Unified Diff: chrome/browser/sync/test/integration/bookmarks_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/bookmarks_helper.cc
diff --git a/chrome/browser/sync/test/integration/bookmarks_helper.cc b/chrome/browser/sync/test/integration/bookmarks_helper.cc
index 264691a6bbe6b29faf38e91d7fc99c6193525953..0e2549032ff99f7e657485f62c095f2f4416cb51 100644
--- a/chrome/browser/sync/test/integration/bookmarks_helper.cc
+++ b/chrome/browser/sync/test/integration/bookmarks_helper.cc
@@ -317,7 +317,8 @@ void WaitForHistoryToProcessPendingTasks() {
Profile* profile = profiles_which_need_to_wait[i];
history::HistoryService* history_service =
HistoryServiceFactory::GetForProfileWithoutCreating(profile);
- base::WaitableEvent done(false, false);
+ base::WaitableEvent done(base::WaitableEvent::ResetPolicy::AUTOMATIC,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
base::CancelableTaskTracker task_tracker;
history_service->ScheduleDBTask(
std::unique_ptr<history::HistoryDBTask>(new HistoryEmptyTask(&done)),

Powered by Google App Engine
This is Rietveld 408576698