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

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

Issue 91413002: Remove fake client creation from DBusClients' Create() functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years 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 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_input_client.h" 5 #include "chromeos/dbus/bluetooth_input_client.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
11 #include "chromeos/dbus/fake_bluetooth_input_client.h"
12 #include "dbus/bus.h" 11 #include "dbus/bus.h"
13 #include "dbus/message.h" 12 #include "dbus/message.h"
14 #include "dbus/object_manager.h" 13 #include "dbus/object_manager.h"
15 #include "dbus/object_path.h" 14 #include "dbus/object_path.h"
16 #include "dbus/object_proxy.h" 15 #include "dbus/object_proxy.h"
17 #include "third_party/cros_system_api/dbus/service_constants.h" 16 #include "third_party/cros_system_api/dbus/service_constants.h"
18 17
19 namespace chromeos { 18 namespace chromeos {
20 19
21 BluetoothInputClient::Properties::Properties( 20 BluetoothInputClient::Properties::Properties(
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 127
129 DISALLOW_COPY_AND_ASSIGN(BluetoothInputClientImpl); 128 DISALLOW_COPY_AND_ASSIGN(BluetoothInputClientImpl);
130 }; 129 };
131 130
132 BluetoothInputClient::BluetoothInputClient() { 131 BluetoothInputClient::BluetoothInputClient() {
133 } 132 }
134 133
135 BluetoothInputClient::~BluetoothInputClient() { 134 BluetoothInputClient::~BluetoothInputClient() {
136 } 135 }
137 136
138 BluetoothInputClient* BluetoothInputClient::Create( 137 BluetoothInputClient* BluetoothInputClient::Create() {
139 DBusClientImplementationType type) { 138 return new BluetoothInputClientImpl();
140 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION)
141 return new BluetoothInputClientImpl();
142 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type);
143 return new FakeBluetoothInputClient();
144 } 139 }
145 140
146 } // namespace chromeos 141 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/bluetooth_input_client.h ('k') | chromeos/dbus/bluetooth_profile_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698