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

Unified Diff: chromeos/dbus/session_manager_client.cc

Issue 16770002: Restart Chrome if per session flags have been specified on ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to ToT and addressed Nico's comments. Created 7 years, 6 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/session_manager_client.cc
diff --git a/chromeos/dbus/session_manager_client.cc b/chromeos/dbus/session_manager_client.cc
index d7700e76962910d028996006f77b206d71626133..f610275219778cb3dd57a3918836b33e42f41d9f 100644
--- a/chromeos/dbus/session_manager_client.cc
+++ b/chromeos/dbus/session_manager_client.cc
@@ -271,6 +271,19 @@ class SessionManagerClientImpl : public SessionManagerClient {
callback);
}
+ virtual void SetFlagsForUser(const std::string& username,
+ const std::vector<std::string>& flags) OVERRIDE {
+ dbus::MethodCall method_call(login_manager::kSessionManagerInterface,
+ login_manager::kSessionManagerSetFlagsForUser);
+ dbus::MessageWriter writer(&method_call);
+ writer.AppendString(username);
+ writer.AppendArrayOfStrings(flags);
+ session_manager_proxy_->CallMethod(
+ &method_call,
+ dbus::ObjectProxy::TIMEOUT_USE_DEFAULT,
+ dbus::ObjectProxy::EmptyResponseCallback());
+ }
+
private:
// Makes a method call to the session manager with no arguments and no
// response.
@@ -597,6 +610,9 @@ class SessionManagerClientStubImpl : public SessionManagerClient {
user_policies_[account_name] = policy_blob;
callback.Run(true);
}
+ virtual void SetFlagsForUser(const std::string& username,
+ const std::vector<std::string>& flags) OVERRIDE {
+ }
static void StoreFileInBackground(const base::FilePath& path,
const std::string& data) {
« chrome/browser/chromeos/login/login_utils.cc ('K') | « chromeos/dbus/session_manager_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698