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

Unified Diff: chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.cc

Issue 13416005: Bluetooth: clean up BluetoothDevice (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More win visible fixes Created 7 years, 9 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/ui/webui/options/chromeos/bluetooth_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.cc
index 4bed9b8d2d3089d3ca0c3cdaf022c3f2562e464e..f9948436888ff525d78156141612bd497a1b3793 100644
--- a/chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.cc
@@ -296,7 +296,7 @@ void BluetoothOptionsHandler::UpdateDeviceCallback(
base::Bind(&base::DoNothing),
base::Bind(&BluetoothOptionsHandler::ConnectError,
weak_ptr_factory_.GetWeakPtr(),
- device->address()));
+ device->GetAddress()));
}
} else if (command == kCancelCommand) {
// Cancel pairing.
@@ -317,13 +317,13 @@ void BluetoothOptionsHandler::UpdateDeviceCallback(
base::Bind(&base::DoNothing),
base::Bind(&BluetoothOptionsHandler::DisconnectError,
weak_ptr_factory_.GetWeakPtr(),
- device->address()));
+ device->GetAddress()));
} else if (command == kForgetCommand) {
// Disconnect from device and delete pairing information.
VLOG(1) << "Forget device: " << address;
device->Forget(base::Bind(&BluetoothOptionsHandler::ForgetError,
weak_ptr_factory_.GetWeakPtr(),
- device->address()));
+ device->GetAddress()));
} else {
LOG(WARNING) << "Unknown updateBluetoothDevice command: " << command;
}
@@ -406,9 +406,8 @@ void BluetoothOptionsHandler::SendDeviceNotification(
base::DictionaryValue* params) {
base::DictionaryValue js_properties;
js_properties.SetString("name", device->GetName());
- js_properties.SetString("address", device->address());
+ js_properties.SetString("address", device->GetAddress());
js_properties.SetBoolean("paired", device->IsPaired());
- js_properties.SetBoolean("bonded", device->IsBonded());
js_properties.SetBoolean("connected", device->IsConnected());
js_properties.SetBoolean("connectable", device->IsConnectable());
if (params)
@@ -489,7 +488,7 @@ void BluetoothOptionsHandler::DeviceRemoved(device::BluetoothAdapter* adapter,
DCHECK(adapter == adapter_.get());
DCHECK(device);
- base::StringValue address(device->address());
+ base::StringValue address(device->GetAddress());
web_ui()->CallJavascriptFunction(
"options.BrowserOptions.removeBluetoothDevice",
address);
« no previous file with comments | « chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js ('k') | chrome/common/extensions/api/bluetooth.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698