summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus/nfc_record_client.cc
diff options
context:
space:
mode:
authorpneubeck@chromium.org <pneubeck@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-03 09:59:45 +0000
committerpneubeck@chromium.org <pneubeck@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-03 09:59:45 +0000
commit6489b459d871f319d20c1ba37aa0ac2ed8bed78a (patch)
tree19cac61fca2f519cf5c7986e09b82f44218769c5 /chromeos/dbus/nfc_record_client.cc
parent5d2cfdfe2bf4a5010fb00f8f03bf277d14f5641c (diff)
downloadchromium_src-6489b459d871f319d20c1ba37aa0ac2ed8bed78a.zip
chromium_src-6489b459d871f319d20c1ba37aa0ac2ed8bed78a.tar.gz
chromium_src-6489b459d871f319d20c1ba37aa0ac2ed8bed78a.tar.bz2
Remove fake client creation from DBusClients' Create() functions.
The DBusClient interfaces shouldn't provide functionality related to testing code (like Stubs/fake implementations). Instead fake clients are now directly created without relying on the static Create() functions. The now unused DBusClientImplementationType argument of the Create() functions could be removed. BUG=275286 R=satorux@chromium.org Review URL: https://codereview.chromium.org/91413002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238330 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/nfc_record_client.cc')
-rw-r--r--chromeos/dbus/nfc_record_client.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/chromeos/dbus/nfc_record_client.cc b/chromeos/dbus/nfc_record_client.cc
index 753d33f..d7bbafd 100644
--- a/chromeos/dbus/nfc_record_client.cc
+++ b/chromeos/dbus/nfc_record_client.cc
@@ -7,7 +7,6 @@
#include "base/bind.h"
#include "base/memory/weak_ptr.h"
#include "base/observer_list.h"
-#include "chromeos/dbus/fake_nfc_record_client.h"
#include "chromeos/dbus/nfc_device_client.h"
#include "chromeos/dbus/nfc_tag_client.h"
#include "dbus/bus.h"
@@ -247,13 +246,9 @@ NfcRecordClient::NfcRecordClient() {
NfcRecordClient::~NfcRecordClient() {
}
-NfcRecordClient* NfcRecordClient::Create(DBusClientImplementationType type,
- NfcDeviceClient* device_client,
+NfcRecordClient* NfcRecordClient::Create(NfcDeviceClient* device_client,
NfcTagClient* tag_client) {
- if (type == REAL_DBUS_CLIENT_IMPLEMENTATION)
- return new NfcRecordClientImpl(device_client, tag_client);
- DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type);
- return new FakeNfcRecordClient();
+ return new NfcRecordClientImpl(device_client, tag_client);
}
} // namespace chromeos