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

Unified Diff: chrome/browser/chrome_select_file_dialog_factory_win.cc

Issue 2047163003: Manual refactor to enum-based WaitableEvent for remaining _win files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: +sync_socket_win.cc 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 | « base/sync_socket_win.cc ('k') | chrome/browser/password_manager/password_store_win_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_select_file_dialog_factory_win.cc
diff --git a/chrome/browser/chrome_select_file_dialog_factory_win.cc b/chrome/browser/chrome_select_file_dialog_factory_win.cc
index 4fa88922e28dbdd0b154722e07c805a8cb24f5c4..806a959332d4a58fd4e89693577ee33ea1b799ff 100644
--- a/chrome/browser/chrome_select_file_dialog_factory_win.cc
+++ b/chrome/browser/chrome_select_file_dialog_factory_win.cc
@@ -68,8 +68,9 @@ class GetOpenFileNameClient : public content::UtilityProcessHostClient {
DISALLOW_COPY_AND_ASSIGN(GetOpenFileNameClient);
};
-GetOpenFileNameClient::GetOpenFileNameClient() : event_(true, false) {
-}
+GetOpenFileNameClient::GetOpenFileNameClient()
+ : event_(base::WaitableEvent::ResetPolicy::MANUAL,
+ base::WaitableEvent::InitialState::NOT_SIGNALED) {}
void GetOpenFileNameClient::WaitForCompletion() {
event_.Wait();
@@ -198,8 +199,9 @@ class GetSaveFileNameClient : public content::UtilityProcessHostClient {
};
GetSaveFileNameClient::GetSaveFileNameClient()
- : one_based_filter_index_(0), event_(true, false) {
-}
+ : one_based_filter_index_(0),
+ event_(base::WaitableEvent::ResetPolicy::MANUAL,
+ base::WaitableEvent::InitialState::NOT_SIGNALED) {}
void GetSaveFileNameClient::WaitForCompletion() {
event_.Wait();
« no previous file with comments | « base/sync_socket_win.cc ('k') | chrome/browser/password_manager/password_store_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698