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

Side by Side Diff: chrome/browser/chromeos/dbus/bluetooth_agent_service_provider.cc

Issue 9546013: Move IsRunningOnChromeOS to base/chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chromeos_version,sync,cleanup Created 8 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 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/chromeos/dbus/bluetooth_agent_service_provider.h" 5 #include "chrome/browser/chromeos/dbus/bluetooth_agent_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"
10 #include "base/logging.h" 11 #include "base/logging.h"
11 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
12 #include "base/threading/platform_thread.h" 13 #include "base/threading/platform_thread.h"
13 #include "chrome/browser/chromeos/system/runtime_environment.h"
14 #include "dbus/bus.h" 14 #include "dbus/bus.h"
15 #include "dbus/exported_object.h" 15 #include "dbus/exported_object.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 "third_party/cros_system_api/dbus/service_constants.h" 18 #include "third_party/cros_system_api/dbus/service_constants.h"
19 19
20 namespace { 20 namespace {
21 21
22 // Constants used by BlueZ for the ConfirmModeChange method. 22 // Constants used by BlueZ for the ConfirmModeChange method.
23 const char kModeOff[] = "off"; 23 const char kModeOff[] = "off";
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 } 551 }
552 552
553 BluetoothAgentServiceProvider::~BluetoothAgentServiceProvider() { 553 BluetoothAgentServiceProvider::~BluetoothAgentServiceProvider() {
554 } 554 }
555 555
556 // static 556 // static
557 BluetoothAgentServiceProvider* BluetoothAgentServiceProvider::Create( 557 BluetoothAgentServiceProvider* BluetoothAgentServiceProvider::Create(
558 dbus::Bus* bus, 558 dbus::Bus* bus,
559 const dbus::ObjectPath& object_path, 559 const dbus::ObjectPath& object_path,
560 Delegate* delegate) { 560 Delegate* delegate) {
561 if (system::runtime_environment::IsRunningOnChromeOS()) { 561 if (base::chromeos::IsRunningOnChromeOS()) {
562 return new BluetoothAgentServiceProviderImpl(bus, object_path, delegate); 562 return new BluetoothAgentServiceProviderImpl(bus, object_path, delegate);
563 } else { 563 } else {
564 return new BluetoothAgentServiceProviderStubImpl(delegate); 564 return new BluetoothAgentServiceProviderStubImpl(delegate);
565 } 565 }
566 } 566 }
567 567
568 } // namespace chromeos 568 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/dbus/bluetooth_adapter_client.cc ('k') | chrome/browser/chromeos/dbus/bluetooth_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698