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

Unified Diff: chrome/test/base/ui_test_utils.cc

Issue 2024723002: DO NOT COMMIT (will be split in sub-components) - clang-tidy WaitableEvent refactor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WEvent_enums
Patch Set: fix presubmits 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
« no previous file with comments | « chrome/test/base/mojo_test_connector.cc ('k') | chrome/test/chromedriver/chrome/adb_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/ui_test_utils.cc
diff --git a/chrome/test/base/ui_test_utils.cc b/chrome/test/base/ui_test_utils.cc
index bca013bb75a9f472b054d5f1647b23d37a84270b..5ec957e5f82eb7fc8b3ee8939fb9748f6fe39393 100644
--- a/chrome/test/base/ui_test_utils.cc
+++ b/chrome/test/base/ui_test_utils.cc
@@ -398,8 +398,8 @@ void GetCookies(const GURL& url,
scoped_refptr<net::URLRequestContextGetter> context_getter =
contents->GetRenderProcessHost()->GetStoragePartition()->
GetURLRequestContext();
- base::WaitableEvent event(true /* manual reset */,
- false /* not initially signaled */);
+ base::WaitableEvent event(base::WaitableEvent::ResetPolicy::MANUAL,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
CHECK(content::BrowserThread::PostTask(
content::BrowserThread::IO, FROM_HERE,
base::Bind(&GetCookiesOnIOThread, url, context_getter, &event, value)));
« no previous file with comments | « chrome/test/base/mojo_test_connector.cc ('k') | chrome/test/chromedriver/chrome/adb_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698