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

Unified Diff: chromeos/dbus/nfc_tag_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_tag_client.h ('k') | chromeos/dbus/permission_broker_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/nfc_tag_client.cc
diff --git a/chromeos/dbus/nfc_tag_client.cc b/chromeos/dbus/nfc_tag_client.cc
index ad80a5109701569560213dfb3510fd26b1e19b7b..9a166cc37c8fffa1ab4295968e29048abbf986fe 100644
--- a/chromeos/dbus/nfc_tag_client.cc
+++ b/chromeos/dbus/nfc_tag_client.cc
@@ -8,7 +8,6 @@
#include "base/memory/weak_ptr.h"
#include "base/observer_list.h"
#include "base/strings/stringprintf.h"
-#include "chromeos/dbus/fake_nfc_tag_client.h"
#include "chromeos/dbus/nfc_adapter_client.h"
#include "dbus/bus.h"
#include "dbus/message.h"
@@ -240,12 +239,8 @@ NfcTagClient::NfcTagClient() {
NfcTagClient::~NfcTagClient() {
}
-NfcTagClient* NfcTagClient::Create(DBusClientImplementationType type,
- NfcAdapterClient* adapter_client) {
- if (type == REAL_DBUS_CLIENT_IMPLEMENTATION)
- return new NfcTagClientImpl(adapter_client);
- DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type);
- return new FakeNfcTagClient();
+NfcTagClient* NfcTagClient::Create(NfcAdapterClient* adapter_client) {
+ return new NfcTagClientImpl(adapter_client);
}
} // namespace chromeos
« no previous file with comments | « chromeos/dbus/nfc_tag_client.h ('k') | chromeos/dbus/permission_broker_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698