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

Unified Diff: components/pairing/shark_connection_listener.cc

Issue 2937253003: cros: Replace BrowserThread::FILE in InputServiceProxy (Closed)
Patch Set: rebase 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/shark_connection_listener.cc
diff --git a/components/pairing/shark_connection_listener.cc b/components/pairing/shark_connection_listener.cc
index 85c554170a57294bbba6b7284c5a3b1eb088b59a..e5eb97d5764b86d838121320ee3aac5d68121d92 100644
--- a/components/pairing/shark_connection_listener.cc
+++ b/components/pairing/shark_connection_listener.cc
@@ -7,16 +7,18 @@
#include <utility>
#include "base/logging.h"
+#include "base/task_runner.h"
#include "base/threading/thread_restrictions.h"
#include "components/pairing/bluetooth_host_pairing_controller.h"
namespace pairing_chromeos {
SharkConnectionListener::SharkConnectionListener(
- const scoped_refptr<base::SingleThreadTaskRunner>& file_task_runner,
+ scoped_refptr<base::TaskRunner> input_service_task_runner,
OnConnectedCallback callback)
: callback_(callback) {
- controller_.reset(new BluetoothHostPairingController(file_task_runner));
+ controller_.reset(
+ new BluetoothHostPairingController(std::move(input_service_task_runner)));
controller_->AddObserver(this);
controller_->StartPairing();
}

Powered by Google App Engine
This is Rietveld 408576698