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

Side by Side Diff: chromeos/dbus/bluetooth_profile_service_provider.cc

Issue 23904025: Move IsRunningOnChromeOS to SysInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge fix Created 7 years, 2 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
« no previous file with comments | « chromeos/dbus/bluetooth_agent_service_provider.cc ('k') | chromeos/dbus/cros_disks_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chromeos/dbus/bluetooth_profile_service_provider.h" 5 #include "chromeos/dbus/bluetooth_profile_service_provider.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/chromeos/chromeos_version.h"
11 #include "base/logging.h" 10 #include "base/logging.h"
12 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/sys_info.h"
13 #include "base/threading/platform_thread.h" 13 #include "base/threading/platform_thread.h"
14 #include "chromeos/dbus/fake_bluetooth_profile_service_provider.h" 14 #include "chromeos/dbus/fake_bluetooth_profile_service_provider.h"
15 #include "dbus/bus.h" 15 #include "dbus/bus.h"
16 #include "dbus/exported_object.h" 16 #include "dbus/exported_object.h"
17 #include "dbus/message.h" 17 #include "dbus/message.h"
18 #include "dbus/object_path.h" 18 #include "dbus/object_path.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
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 } 245 }
246 246
247 BluetoothProfileServiceProvider::~BluetoothProfileServiceProvider() { 247 BluetoothProfileServiceProvider::~BluetoothProfileServiceProvider() {
248 } 248 }
249 249
250 // static 250 // static
251 BluetoothProfileServiceProvider* BluetoothProfileServiceProvider::Create( 251 BluetoothProfileServiceProvider* BluetoothProfileServiceProvider::Create(
252 dbus::Bus* bus, 252 dbus::Bus* bus,
253 const dbus::ObjectPath& object_path, 253 const dbus::ObjectPath& object_path,
254 Delegate* delegate) { 254 Delegate* delegate) {
255 if (base::chromeos::IsRunningOnChromeOS()) { 255 if (base::SysInfo::IsRunningOnChromeOS()) {
256 return new BluetoothProfileServiceProviderImpl(bus, object_path, delegate); 256 return new BluetoothProfileServiceProviderImpl(bus, object_path, delegate);
257 } else { 257 } else {
258 return new FakeBluetoothProfileServiceProvider(object_path, delegate); 258 return new FakeBluetoothProfileServiceProvider(object_path, delegate);
259 } 259 }
260 } 260 }
261 261
262 } // namespace chromeos 262 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/bluetooth_agent_service_provider.cc ('k') | chromeos/dbus/cros_disks_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698