| OLD | NEW |
| 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/chromeos/dbus/bluetooth_node_client.h" | 5 #include "chrome/browser/chromeos/dbus/bluetooth_node_client.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/chromeos/chromeos_version.h" |
| 10 #include "base/logging.h" | 11 #include "base/logging.h" |
| 11 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
| 12 #include "chrome/browser/chromeos/dbus/bluetooth_device_client.h" | 13 #include "chrome/browser/chromeos/dbus/bluetooth_device_client.h" |
| 13 #include "chrome/browser/chromeos/dbus/bluetooth_property.h" | 14 #include "chrome/browser/chromeos/dbus/bluetooth_property.h" |
| 14 #include "chrome/browser/chromeos/system/runtime_environment.h" | |
| 15 #include "dbus/bus.h" | 15 #include "dbus/bus.h" |
| 16 #include "dbus/message.h" | 16 #include "dbus/message.h" |
| 17 #include "dbus/object_path.h" | 17 #include "dbus/object_path.h" |
| 18 #include "dbus/object_proxy.h" | 18 #include "dbus/object_proxy.h" |
| 19 #include "third_party/cros_system_api/dbus/service_constants.h" | 19 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 20 | 20 |
| 21 namespace chromeos { | 21 namespace chromeos { |
| 22 | 22 |
| 23 BluetoothNodeClient::Properties::Properties(dbus::ObjectProxy* object_proxy, | 23 BluetoothNodeClient::Properties::Properties(dbus::ObjectProxy* object_proxy, |
| 24 PropertyChangedCallback callback) | 24 PropertyChangedCallback callback) |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 | 185 |
| 186 BluetoothNodeClient::BluetoothNodeClient() { | 186 BluetoothNodeClient::BluetoothNodeClient() { |
| 187 } | 187 } |
| 188 | 188 |
| 189 BluetoothNodeClient::~BluetoothNodeClient() { | 189 BluetoothNodeClient::~BluetoothNodeClient() { |
| 190 } | 190 } |
| 191 | 191 |
| 192 BluetoothNodeClient* BluetoothNodeClient::Create( | 192 BluetoothNodeClient* BluetoothNodeClient::Create( |
| 193 dbus::Bus* bus, | 193 dbus::Bus* bus, |
| 194 BluetoothDeviceClient* adapter_client) { | 194 BluetoothDeviceClient* adapter_client) { |
| 195 if (system::runtime_environment::IsRunningOnChromeOS()) { | 195 if (base::chromeos::IsRunningOnChromeOS()) { |
| 196 return new BluetoothNodeClientImpl(bus, adapter_client); | 196 return new BluetoothNodeClientImpl(bus, adapter_client); |
| 197 } else { | 197 } else { |
| 198 return new BluetoothNodeClientStubImpl(); | 198 return new BluetoothNodeClientStubImpl(); |
| 199 } | 199 } |
| 200 } | 200 } |
| 201 | 201 |
| 202 } // namespace chromeos | 202 } // namespace chromeos |
| OLD | NEW |