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

Unified Diff: chromeos/dbus/fake_upstart_client.cc

Issue 2673813003: Emulate StartAuthPolicyService from FakeUpstartClient (Closed)
Patch Set: Created 3 years, 10 months 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
Index: chromeos/dbus/fake_upstart_client.cc
diff --git a/chromeos/dbus/fake_upstart_client.cc b/chromeos/dbus/fake_upstart_client.cc
index 92e363b5c7278b4a0d85994202ff134671e49567..5ee4d3b92ebaa32d0af5c28b8b025e71c9eee28f 100644
--- a/chromeos/dbus/fake_upstart_client.cc
+++ b/chromeos/dbus/fake_upstart_client.cc
@@ -4,6 +4,9 @@
#include "chromeos/dbus/fake_upstart_client.h"
+#include "chromeos/dbus/dbus_thread_manager.h"
+#include "chromeos/dbus/fake_auth_policy_client.h"
+
namespace chromeos {
FakeUpstartClient::FakeUpstartClient() {}
@@ -12,6 +15,10 @@ FakeUpstartClient::~FakeUpstartClient() {}
void FakeUpstartClient::Init(dbus::Bus* bus) {}
-void FakeUpstartClient::StartAuthPolicyService() {}
+void FakeUpstartClient::StartAuthPolicyService() {
+ static_cast<FakeAuthPolicyClient*>(
+ chromeos::DBusThreadManager::Get()->GetAuthPolicyClient())
hashimoto 2017/02/06 04:15:49 nit: No need to have "chromeos::". You are already
Roman Sorokin (ftl) 2017/02/06 10:30:40 Done.
+ ->Start();
+}
} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698