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

Unified Diff: chrome/browser/resources/options2/chromeos/bluetooth_add_device_overlay.js

Issue 9312001: Add bluetooth callbacks for fetching paired devices and stopping device discovery. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Prune log messages. Created 8 years, 11 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: chrome/browser/resources/options2/chromeos/bluetooth_add_device_overlay.js
diff --git a/chrome/browser/resources/options2/chromeos/bluetooth_add_device_overlay.js b/chrome/browser/resources/options2/chromeos/bluetooth_add_device_overlay.js
index 7a860e49470785e9c899367d69195053ac2d17af..e9f0f8436ab18dceda9a7708544eaea366d28ff6 100644
--- a/chrome/browser/resources/options2/chromeos/bluetooth_add_device_overlay.js
+++ b/chrome/browser/resources/options2/chromeos/bluetooth_add_device_overlay.js
@@ -34,6 +34,7 @@ cr.define('options', function() {
this.createDeviceList_();
$('bluetooth-add-device-cancel-button').onclick = function(event) {
+ chrome.send('stopBluetoothDeviceDiscovery');
OptionsPage.closeOverlay();
};
@@ -41,6 +42,7 @@ cr.define('options', function() {
$('bluetooth-add-device-apply-button').onclick = function(event) {
var device = self.deviceList_.selectedItem;
var address = device.address;
+ chrome.send('stopBluetoothDeviceDiscovery');
chrome.send('updateBluetoothDevice', [address, 'connect']);
OptionsPage.closeOverlay();
};

Powered by Google App Engine
This is Rietveld 408576698