summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui')
-rw-r--r--chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.cc3
-rw-r--r--chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h27
2 files changed, 15 insertions, 15 deletions
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 b6ca46a..f69fc34 100644
--- a/chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.cc
@@ -12,6 +12,7 @@
#include "base/utf_string_conversions.h"
#include "base/values.h"
#include "chrome/browser/chromeos/bluetooth/bluetooth_adapter.h"
+#include "chrome/browser/chromeos/bluetooth/bluetooth_adapter_factory.h"
#include "chrome/browser/chromeos/bluetooth/bluetooth_device.h"
#include "content/public/browser/web_ui.h"
#include "grit/chromium_strings.h"
@@ -166,7 +167,7 @@ void BluetoothOptionsHandler::RegisterMessages() {
}
void BluetoothOptionsHandler::InitializeHandler() {
- adapter_ = BluetoothAdapter::DefaultAdapter();
+ adapter_ = BluetoothAdapterFactory::DefaultAdapter();
adapter_->AddObserver(this);
}
diff --git a/chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h b/chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h
index f27d4c4..b98763a 100644
--- a/chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h
+++ b/chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h
@@ -10,6 +10,7 @@
#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
#include "chrome/browser/chromeos/bluetooth/bluetooth_adapter.h"
#include "chrome/browser/chromeos/bluetooth/bluetooth_device.h"
#include "chrome/browser/ui/webui/options/options_ui.h"
@@ -88,8 +89,7 @@ class BluetoothOptionsHandler : public ::options::OptionsPageUIHandler,
// but not display, such as keyboards. The Passkey is a numeric in the
// range 0-999999 and should be always presented zero-padded to six
// digits.
- virtual void DisplayPasskey(BluetoothDevice* device,
- uint32 passkey) OVERRIDE;
+ virtual void DisplayPasskey(BluetoothDevice* device, uint32 passkey) OVERRIDE;
// BluetoothDevice::PairingDelegate override.
//
@@ -102,8 +102,7 @@ class BluetoothOptionsHandler : public ::options::OptionsPageUIHandler,
// such as other computers or phones. The Passkey is a numeric in the
// range 0-999999 and should be always present zero-padded to six
// digits.
- virtual void ConfirmPasskey(BluetoothDevice* device,
- uint32 passkey) OVERRIDE;
+ virtual void ConfirmPasskey(BluetoothDevice* device, uint32 passkey) OVERRIDE;
// BluetoothDevice::PairingDelegate override.
//
@@ -131,28 +130,28 @@ class BluetoothOptionsHandler : public ::options::OptionsPageUIHandler,
BluetoothDevice* device) OVERRIDE;
private:
- // Called by BluetoothAdapter in response to a failure to change the
- // power status of the adapter.
+ // Called by BluetoothAdapter in response to a failure to change the power
+ // status of the adapter.
void EnableChangeError();
- // Called by BluetoothAdapter in response to a failure to set the adapter
- // into discovery mode.
+ // Called by BluetoothAdapter in response to a failure to set the adapter into
+ // discovery mode.
void FindDevicesError();
// Called by BluetoothAdapter in response to a failure to remove the adapter
// from discovery mode.
void StopDiscoveryError();
- // Called by BluetoothDevice in response to a failure to connect to the
- // device with bluetooth address |address|.
+ // Called by BluetoothDevice in response to a failure to connect to the device
+ // with bluetooth address |address|.
void ConnectError(const std::string& address);
- // Called by BluetoothDevice in response to a failure to disconnect the
- // device with bluetooth address |address|.
+ // Called by BluetoothDevice in response to a failure to disconnect the device
+ // with bluetooth address |address|.
void DisconnectError(const std::string& address);
- // Called by BluetoothDevice in response to a failure to disconnect and
- // unpair the device with bluetooth address |address|.
+ // Called by BluetoothDevice in response to a failure to disconnect and unpair
+ // the device with bluetooth address |address|.
void ForgetError(const std::string& address);
// Called when the 'Enable bluetooth' checkbox value is changed.