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/introspectable_client.h" | 5 #include "chromeos/dbus/introspectable_client.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/chromeos/chromeos_version.h" |
11 #include "base/logging.h" | 12 #include "base/logging.h" |
12 #include "base/chromeos/chromeos_version.h" | |
13 #include "dbus/bus.h" | 13 #include "dbus/bus.h" |
14 #include "dbus/message.h" | 14 #include "dbus/message.h" |
15 #include "dbus/object_path.h" | 15 #include "dbus/object_path.h" |
16 #include "dbus/object_proxy.h" | 16 #include "dbus/object_proxy.h" |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 // D-Bus specification constants. | 20 // D-Bus specification constants. |
21 const char kIntrospectableInterface[] = "org.freedesktop.DBus.Introspectable"; | 21 const char kIntrospectableInterface[] = "org.freedesktop.DBus.Introspectable"; |
22 const char kIntrospect[] = "Introspect"; | 22 const char kIntrospect[] = "Introspect"; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 // static | 108 // static |
109 IntrospectableClient* IntrospectableClient::Create(dbus::Bus* bus) { | 109 IntrospectableClient* IntrospectableClient::Create(dbus::Bus* bus) { |
110 if (base::chromeos::IsRunningOnChromeOS()) { | 110 if (base::chromeos::IsRunningOnChromeOS()) { |
111 return new IntrospectableClientImpl(bus); | 111 return new IntrospectableClientImpl(bus); |
112 } else { | 112 } else { |
113 return new IntrospectableClientStubImpl(); | 113 return new IntrospectableClientStubImpl(); |
114 } | 114 } |
115 } | 115 } |
116 | 116 |
117 } // namespace chromeos | 117 } // namespace chromeos |
OLD | NEW |