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

Unified Diff: chromeos/dbus/session_manager_client.cc

Issue 2653823004: Do not restart Chrome to apply user flags with stub session manager (Closed)
Patch Set: .\ Created 3 years, 11 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/session_manager_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/session_manager_client.cc
diff --git a/chromeos/dbus/session_manager_client.cc b/chromeos/dbus/session_manager_client.cc
index 03aa6fd5dbf4eb862ce7ba6e7ccdacd8638ad141..940ababd49a938f0e554227e441f7c006cebde09 100644
--- a/chromeos/dbus/session_manager_client.cc
+++ b/chromeos/dbus/session_manager_client.cc
@@ -275,6 +275,8 @@ class SessionManagerClientImpl : public SessionManagerClient {
callback);
}
+ bool SupportsRestartToApplyUserFlags() const override { return true; }
+
void SetFlagsForUser(const cryptohome::Identification& cryptohome_id,
const std::vector<std::string>& flags) override {
dbus::MethodCall method_call(login_manager::kSessionManagerInterface,
@@ -940,6 +942,9 @@ class SessionManagerClientStubImpl : public SessionManagerClient {
StorePolicyForUser(cryptohome::Identification::FromString(account_id),
policy_blob, callback);
}
+
+ bool SupportsRestartToApplyUserFlags() const override { return false; }
+
void SetFlagsForUser(const cryptohome::Identification& cryptohome_id,
const std::vector<std::string>& flags) override {}
« no previous file with comments | « chromeos/dbus/session_manager_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698