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

Unified Diff: chrome/browser/resources/options2/browser_options.js

Issue 9567031: Fix the bluetooth 'add device' button for CrOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options2/browser_options.js
===================================================================
--- chrome/browser/resources/options2/browser_options.js (revision 124492)
+++ chrome/browser/resources/options2/browser_options.js (working copy)
@@ -273,10 +273,8 @@
options.system.bluetooth.BluetoothDeviceList.decorate(
$('bluetooth-paired-devices-list'));
- $('bluetooth-add-device').onclick = function(event) {
- this.findBluetoothDevices_(true);
- OptionsPage.navigateToPage('bluetooth');
- };
+ $('bluetooth-add-device').onclick =
+ this.handleAddBluetoothDevice_.bind(this);
$('enable-bluetooth').onchange = function(event) {
var state = $('enable-bluetooth').checked;
@@ -481,7 +479,7 @@
* @private
*/
hideAdvancedSettings_: function() {
- $('advanced-settings').style.height = '0px'
+ $('advanced-settings').style.height = '0px';
$('advanced-settings-expander').innerHTML =
localStrings.getString('showAdvancedSettings');
},
@@ -955,14 +953,13 @@
},
/**
- * Scan for bluetooth devices.
- * @param {boolean} reset Indicates if the list of unpaired devices should
- * be cleared.
+ * Handle the 'add device' button click.
* @private
*/
- findBluetoothDevices_: function(reset) {
+ handleAddBluetoothDevice_: function() {
$('bluetooth-unpaired-devices-list').clear();
chrome.send('findBluetoothDevices');
+ OptionsPage.navigateToPage('bluetooth');
},
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698