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

Unified Diff: chrome/browser/android/provider/run_on_ui_thread_blocking.h

Issue 2043303004: More WaitableEvent stragglers migrated to enum-based constructor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@d_4_misc
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
« no previous file with comments | « no previous file | chromecast/base/bind_to_task_runner_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/provider/run_on_ui_thread_blocking.h
diff --git a/chrome/browser/android/provider/run_on_ui_thread_blocking.h b/chrome/browser/android/provider/run_on_ui_thread_blocking.h
index b43410e13091336868d32c3e8f5db8be38c2b50b..3686add2b1fc9f283102f4ef009d38adbfcdc1b4 100644
--- a/chrome/browser/android/provider/run_on_ui_thread_blocking.h
+++ b/chrome/browser/android/provider/run_on_ui_thread_blocking.h
@@ -19,7 +19,9 @@ class RunOnUIThreadBlocking {
template <typename Signature>
static void Run(base::Callback<Signature> runnable) {
DCHECK(!content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
- base::WaitableEvent finished(false, false);
+ base::WaitableEvent finished(
+ base::WaitableEvent::ResetPolicy::AUTOMATIC,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
content::BrowserThread::PostTask(content::BrowserThread::UI, FROM_HERE,
base::Bind(&RunOnUIThreadBlocking::RunOnUIThread<Signature>,
runnable, &finished));
« no previous file with comments | « no previous file | chromecast/base/bind_to_task_runner_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698