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

Unified Diff: chrome/browser/ui/ash/session_controller_client.h

Issue 2873453003: cros: Update ash when prefs related to lock are changed (Closed)
Patch Set: Created 3 years, 7 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: chrome/browser/ui/ash/session_controller_client.h
diff --git a/chrome/browser/ui/ash/session_controller_client.h b/chrome/browser/ui/ash/session_controller_client.h
index 9fffbe0a47eac7d325d190d37d70297a51780446..77656357f13af437e1ea21571808e743e77f0af1 100644
--- a/chrome/browser/ui/ash/session_controller_client.h
+++ b/chrome/browser/ui/ash/session_controller_client.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_UI_ASH_SESSION_CONTROLLER_CLIENT_H_
#define CHROME_BROWSER_UI_ASH_SESSION_CONTROLLER_CLIENT_H_
+#include <vector>
+
#include "ash/public/interfaces/session_controller.mojom.h"
#include "base/callback_forward.h"
#include "base/gtest_prod_util.h"
@@ -18,6 +20,7 @@
#include "mojo/public/cpp/bindings/binding.h"
class Profile;
+class PrefChangeRegistrar;
namespace ash {
enum class AddUserSessionPolicy;
@@ -97,6 +100,7 @@ class SessionControllerClient
private:
FRIEND_TEST_ALL_PREFIXES(SessionControllerClientTest, SendUserSession);
FRIEND_TEST_ALL_PREFIXES(SessionControllerClientTest, SupervisedUser);
+ FRIEND_TEST_ALL_PREFIXES(SessionControllerClientTest, UserPrefsChange);
// Called when the login profile is ready.
void OnLoginUserProfilePrepared(Profile* profile);
@@ -130,6 +134,7 @@ class SessionControllerClient
Profile* supervised_user_profile_ = nullptr;
content::NotificationRegistrar registrar_;
+ std::vector<std::unique_ptr<PrefChangeRegistrar>> pref_change_registrars_;
James Cook 2017/05/08 21:49:59 nit: Comment that there is one per user. (And mayb
xiyuan 2017/05/08 22:27:39 Done.
// Used to suppress duplicate IPCs to ash.
ash::mojom::SessionInfoPtr last_sent_session_info_;

Powered by Google App Engine
This is Rietveld 408576698