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 #include "chromeos/dbus/sms_client.h" | 4 #include "chromeos/dbus/sms_client.h" |
5 | 5 |
6 #include <map> | 6 #include <map> |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
14 #include "base/stringprintf.h" | |
15 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
| 15 #include "base/strings/stringprintf.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "chromeos/chromeos_switches.h" | 17 #include "chromeos/chromeos_switches.h" |
18 #include "dbus/bus.h" | 18 #include "dbus/bus.h" |
19 #include "dbus/message.h" | 19 #include "dbus/message.h" |
20 #include "dbus/object_proxy.h" | 20 #include "dbus/object_proxy.h" |
21 #include "dbus/values_util.h" | 21 #include "dbus/values_util.h" |
22 #include "third_party/cros_system_api/dbus/service_constants.h" | 22 #include "third_party/cros_system_api/dbus/service_constants.h" |
23 | 23 |
24 namespace chromeos { | 24 namespace chromeos { |
25 | 25 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 SMSClient* SMSClient::Create(DBusClientImplementationType type, | 134 SMSClient* SMSClient::Create(DBusClientImplementationType type, |
135 dbus::Bus* bus) { | 135 dbus::Bus* bus) { |
136 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION) { | 136 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION) { |
137 return new SMSClientImpl(bus); | 137 return new SMSClientImpl(bus); |
138 } | 138 } |
139 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type); | 139 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type); |
140 return new SMSClientStubImpl(); | 140 return new SMSClientStubImpl(); |
141 } | 141 } |
142 | 142 |
143 } // namespace chromeos | 143 } // namespace chromeos |
OLD | NEW |