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/fake_upstart_client.cc

Issue 2794493002: Add AuthPolicyLoginHelper (Closed)
Patch Set: Update after review Created 3 years, 8 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
« no previous file with comments | « chromeos/dbus/fake_upstart_client.h ('k') | chromeos/dbus/upstart_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/fake_upstart_client.cc
diff --git a/chromeos/dbus/fake_upstart_client.cc b/chromeos/dbus/fake_upstart_client.cc
index 2980912ca45ed47c8c5b0ed6a62048405e651b2b..7f803c86c1c71023a6079935a635b615ee5f57e6 100644
--- a/chromeos/dbus/fake_upstart_client.cc
+++ b/chromeos/dbus/fake_upstart_client.cc
@@ -21,4 +21,12 @@ void FakeUpstartClient::StartAuthPolicyService() {
->set_started(true);
}
+void FakeUpstartClient::RestartAuthPolicyService() {
+ FakeAuthPolicyClient* authpolicy_client = static_cast<FakeAuthPolicyClient*>(
+ DBusThreadManager::Get()->GetAuthPolicyClient());
+ DLOG_IF(WARNING, !authpolicy_client->started())
+ << "Trying to restart authpolicyd which is not started";
+ authpolicy_client->set_started(true);
+}
+
} // namespace chromeos
« no previous file with comments | « chromeos/dbus/fake_upstart_client.h ('k') | chromeos/dbus/upstart_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698