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

Unified Diff: chrome/browser/metrics/thread_watcher_android_unittest.cc

Issue 2041033003: clang-tidy WaitableEvent refactor (Android side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0_windows
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 | « chrome/browser/history/android/sqlite_cursor.cc ('k') | chrome/chrome_watcher/chrome_watcher_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/thread_watcher_android_unittest.cc
diff --git a/chrome/browser/metrics/thread_watcher_android_unittest.cc b/chrome/browser/metrics/thread_watcher_android_unittest.cc
index 1bcc58bcb54aa8626411e4f19f3eea6e6e372bd5..9479d1c0064be36a70c230d732e85f0cd4837185 100644
--- a/chrome/browser/metrics/thread_watcher_android_unittest.cc
+++ b/chrome/browser/metrics/thread_watcher_android_unittest.cc
@@ -28,7 +28,9 @@ void PostAndWaitForWatchdogThread(base::WaitableEvent* event) {
}
void NotifyApplicationStateChange(base::android::ApplicationState state) {
- base::WaitableEvent watchdog_thread_event(false, false);
+ base::WaitableEvent watchdog_thread_event(
+ base::WaitableEvent::ResetPolicy::AUTOMATIC,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
base::android::ApplicationStatusListener::NotifyApplicationStateChange(state);
base::RunLoop().RunUntilIdle();
« no previous file with comments | « chrome/browser/history/android/sqlite_cursor.cc ('k') | chrome/chrome_watcher/chrome_watcher_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698