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

Side by Side Diff: chrome/browser/android/provider/blocking_ui_thread_async_request.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/android/provider/blocking_ui_thread_async_request.h" 5 #include "chrome/browser/android/provider/blocking_ui_thread_async_request.h"
6 6
7 BlockingUIThreadAsyncRequest::BlockingUIThreadAsyncRequest() 7 BlockingUIThreadAsyncRequest::BlockingUIThreadAsyncRequest()
8 : request_completed_(false, false) { 8 : request_completed_(base::WaitableEvent::ResetPolicy::AUTOMATIC,
9 } 9 base::WaitableEvent::InitialState::NOT_SIGNALED) {}
10 10
11 void BlockingUIThreadAsyncRequest::RequestCompleted() { 11 void BlockingUIThreadAsyncRequest::RequestCompleted() {
12 // Currently all our use cases receive their request response in the UI 12 // Currently all our use cases receive their request response in the UI
13 // thread (the same thread that made the request). However this is not 13 // thread (the same thread that made the request). However this is not
14 // a design constraint and can be changed if ever needed. 14 // a design constraint and can be changed if ever needed.
15 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); 15 DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
16 request_completed_.Signal(); 16 request_completed_.Signal();
17 } 17 }
OLDNEW
« no previous file with comments | « chrome/browser/android/history_report/usage_reports_buffer_service.cc ('k') | chrome/browser/history/android/sqlite_cursor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698