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

Unified Diff: chromeos/dbus/nfc_record_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/dbus/nfc_record_client.h ('k') | chromeos/dbus/nfc_tag_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/nfc_record_client.cc
diff --git a/chromeos/dbus/nfc_record_client.cc b/chromeos/dbus/nfc_record_client.cc
index 753d33fa9c95777e7409e54b55aeaffd430ee074..d7bbafd987b677dfb5bd7a67529ef154c27521ea 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
« no previous file with comments | « chromeos/dbus/nfc_record_client.h ('k') | chromeos/dbus/nfc_tag_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698