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

Unified Diff: chrome/browser/profiles/profile_impl.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/browser/profiles/profile_browsertest.cc ('k') | chrome/browser/sessions/session_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 7741c3884288bc29f918dcc91df8afa0020fdd04..7776107508123e68a6945bfceae25aa9ab6dadcc 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -223,7 +223,9 @@ void BlockFileThreadOnDirectoryCreate(base::WaitableEvent* done_creating) {
void CreateProfileDirectory(base::SequencedTaskRunner* sequenced_task_runner,
const base::FilePath& path,
bool create_readme) {
- base::WaitableEvent* done_creating = new base::WaitableEvent(false, false);
+ base::WaitableEvent* done_creating =
+ new base::WaitableEvent(base::WaitableEvent::ResetPolicy::AUTOMATIC,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
sequenced_task_runner->PostTask(
FROM_HERE, base::Bind(&CreateDirectoryAndSignal, path, done_creating,
create_readme));
« no previous file with comments | « chrome/browser/profiles/profile_browsertest.cc ('k') | chrome/browser/sessions/session_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698