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

Side by Side Diff: chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler.cc

Issue 10857071: Options: Rename options2 namespace to options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix. Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler.h" 5 #include "chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 30 matching lines...) Expand all
41 // action. 41 // action.
42 const char kEnterPinCode[] = "bluetoothEnterPinCode"; 42 const char kEnterPinCode[] = "bluetoothEnterPinCode";
43 const char kEnterPasskey[] = "bluetoothEnterPasskey"; 43 const char kEnterPasskey[] = "bluetoothEnterPasskey";
44 const char kRemotePinCode[] = "bluetoothRemotePinCode"; 44 const char kRemotePinCode[] = "bluetoothRemotePinCode";
45 const char kRemotePasskey[] = "bluetoothRemotePasskey"; 45 const char kRemotePasskey[] = "bluetoothRemotePasskey";
46 const char kConfirmPasskey[] = "bluetoothConfirmPasskey"; 46 const char kConfirmPasskey[] = "bluetoothConfirmPasskey";
47 47
48 } // namespace 48 } // namespace
49 49
50 namespace chromeos { 50 namespace chromeos {
51 namespace options2 { 51 namespace options {
52 52
53 BluetoothOptionsHandler::BluetoothOptionsHandler() : weak_ptr_factory_(this) { 53 BluetoothOptionsHandler::BluetoothOptionsHandler() : weak_ptr_factory_(this) {
54 } 54 }
55 55
56 BluetoothOptionsHandler::~BluetoothOptionsHandler() { 56 BluetoothOptionsHandler::~BluetoothOptionsHandler() {
57 if (adapter_.get()) 57 if (adapter_.get())
58 adapter_->RemoveObserver(this); 58 adapter_->RemoveObserver(this);
59 } 59 }
60 60
61 void BluetoothOptionsHandler::GetLocalizedValues( 61 void BluetoothOptionsHandler::GetLocalizedValues(
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 BluetoothDevice* device) { 417 BluetoothDevice* device) {
418 DCHECK(adapter == adapter_.get()); 418 DCHECK(adapter == adapter_.get());
419 DCHECK(device); 419 DCHECK(device);
420 420
421 base::StringValue address(device->address()); 421 base::StringValue address(device->address());
422 web_ui()->CallJavascriptFunction( 422 web_ui()->CallJavascriptFunction(
423 "options.BrowserOptions.removeBluetoothDevice", 423 "options.BrowserOptions.removeBluetoothDevice",
424 address); 424 address);
425 } 425 }
426 426
427 } // namespace options2 427 } // namespace options
428 } // namespace chromeos 428 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698