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

Unified Diff: content/public/test/browser_test_utils.cc

Issue 2026253003: Migrate WaitableEvent to enum-based constructor in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WEvent_enums
Patch Set: 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 | « content/child/fileapi/webfilewriter_impl.cc ('k') | content/renderer/devtools/v8_sampling_profiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/browser_test_utils.cc
diff --git a/content/public/test/browser_test_utils.cc b/content/public/test/browser_test_utils.cc
index d9f017d5bcf06773d42d2fca00488d487326b728..acec230a10ba65ea5dd1b8a53858527b07523fb0 100644
--- a/content/public/test/browser_test_utils.cc
+++ b/content/public/test/browser_test_utils.cc
@@ -814,7 +814,8 @@ bool ExecuteWebUIResourceTest(WebContents* web_contents,
std::string GetCookies(BrowserContext* browser_context, const GURL& url) {
std::string cookies;
- base::WaitableEvent event(true, false);
+ base::WaitableEvent event(base::WaitableEvent::ResetPolicy::MANUAL,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
net::URLRequestContextGetter* context_getter =
BrowserContext::GetDefaultStoragePartition(browser_context)->
GetURLRequestContext();
@@ -831,7 +832,8 @@ bool SetCookie(BrowserContext* browser_context,
const GURL& url,
const std::string& value) {
bool result = false;
- base::WaitableEvent event(true, false);
+ base::WaitableEvent event(base::WaitableEvent::ResetPolicy::MANUAL,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
net::URLRequestContextGetter* context_getter =
BrowserContext::GetDefaultStoragePartition(browser_context)->
GetURLRequestContext();
« no previous file with comments | « content/child/fileapi/webfilewriter_impl.cc ('k') | content/renderer/devtools/v8_sampling_profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698