OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/sensors_client.h" | 5 #include "chrome/browser/chromeos/dbus/sensors_client.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "chrome/browser/chromeos/system/runtime_environment.h" | 9 #include "chrome/browser/chromeos/system/runtime_environment.h" |
10 #include "content/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
11 #include "content/browser/sensors/sensors_provider.h" | 11 #include "content/browser/sensors/sensors_provider.h" |
12 #include "dbus/bus.h" | 12 #include "dbus/bus.h" |
13 #include "dbus/message.h" | 13 #include "dbus/message.h" |
14 #include "dbus/object_proxy.h" | 14 #include "dbus/object_proxy.h" |
15 | 15 |
16 // TODO(cwolfe): Fix the DEPs so that these can be pulled in from | 16 // TODO(cwolfe): Fix the DEPs so that these can be pulled in from |
17 // "chromeos/dbus/service_constants.h". | 17 // "chromeos/dbus/service_constants.h". |
18 namespace chromeos { | 18 namespace chromeos { |
19 // Sensors service identifiers. | 19 // Sensors service identifiers. |
20 const char kSensorsServiceName[] = "org.chromium.Sensors"; | 20 const char kSensorsServiceName[] = "org.chromium.Sensors"; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 90 |
91 SensorsClient* SensorsClient::Create(dbus::Bus* bus) { | 91 SensorsClient* SensorsClient::Create(dbus::Bus* bus) { |
92 if (system::runtime_environment::IsRunningOnChromeOS()) { | 92 if (system::runtime_environment::IsRunningOnChromeOS()) { |
93 return new SensorsClientImpl(bus); | 93 return new SensorsClientImpl(bus); |
94 } else { | 94 } else { |
95 return new SensorsClientStubImpl(); | 95 return new SensorsClientStubImpl(); |
96 } | 96 } |
97 } | 97 } |
98 | 98 |
99 } // namespace chromeos | 99 } // namespace chromeos |
OLD | NEW |