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

Unified Diff: components/pairing/bluetooth_host_pairing_controller.h

Issue 2937253003: cros: Replace BrowserThread::FILE in InputServiceProxy (Closed)
Patch Set: update dependent code to fix tests Created 3 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
Index: components/pairing/bluetooth_host_pairing_controller.h
diff --git a/components/pairing/bluetooth_host_pairing_controller.h b/components/pairing/bluetooth_host_pairing_controller.h
index a9a9d4010a2a2475e8ce726f217ef7b50546d0ec..faa2d107a8d8c34b44229005fdc8e85fc07a9c2e 100644
--- a/components/pairing/bluetooth_host_pairing_controller.h
+++ b/components/pairing/bluetooth_host_pairing_controller.h
@@ -22,7 +22,7 @@
#include "device/hid/input_service_linux.h"
namespace base {
-class SingleThreadTaskRunner;
+class TaskRunner;
}
namespace device {
@@ -62,7 +62,7 @@ class BluetoothHostPairingController
};
explicit BluetoothHostPairingController(
- const scoped_refptr<base::SingleThreadTaskRunner>& file_task_runner);
+ const scoped_refptr<base::TaskRunner>& input_service_task_runner);
~BluetoothHostPairingController() override;
// These functions should be only used in tests.
@@ -154,8 +154,8 @@ class BluetoothHostPairingController
std::unique_ptr<ProtoDecoder> proto_decoder_;
TestDelegate* delegate_ = nullptr;
- scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_;
- base::ThreadChecker thread_checker_;
+ scoped_refptr<base::TaskRunner> input_service_task_runner_;
+ THREAD_CHECKER(thread_checker_);
base::ObserverList<Observer> observers_;
base::WeakPtrFactory<BluetoothHostPairingController> ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698