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

Unified Diff: content/browser/bluetooth/bluetooth_dispatcher_host.cc

Issue 1315093002: Implement a bluetooth picker dialog for Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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: content/browser/bluetooth/bluetooth_dispatcher_host.cc
diff --git a/content/browser/bluetooth/bluetooth_dispatcher_host.cc b/content/browser/bluetooth/bluetooth_dispatcher_host.cc
index af5c8f4360970ab1e3a60e92ac0804400da473c3..778c5c3b94fc076b6585566c82182a6c77f46c19 100644
--- a/content/browser/bluetooth/bluetooth_dispatcher_host.cc
+++ b/content/browser/bluetooth/bluetooth_dispatcher_host.cc
@@ -43,7 +43,7 @@ namespace {
// chooser from tests, and the right callback for discovered services we should
// delete these constants.
// https://crbug.com/436280 and https://crbug.com/484504
-const int kDelayTime = 5; // 5 seconds for scanning and discovering
+const int kDelayTime = 20; // 20 seconds for scanning and discovering
scheib 2015/08/29 20:15:18 This constant also affects the delay for GetPrimar
Finnur 2015/08/31 15:25:22 OK, reverted and I'll leave this up to you guys wi
const int kTestingDelayTime = 0; // No need to wait during tests
// Defined at
@@ -708,6 +708,10 @@ void BluetoothDispatcherHost::OnBluetoothChooserEvent(
BluetoothChooser::Event event,
const std::string& device_id) {
switch (event) {
+ case BluetoothChooser::Event::RESTART:
+ // TODO(jyasskin): Implement restarting.
+ NOTIMPLEMENTED();
+ break;
case BluetoothChooser::Event::CANCELLED:
case BluetoothChooser::Event::SELECTED:
RequestDeviceSession* session =

Powered by Google App Engine
This is Rietveld 408576698