Chromium Code Reviews| 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_; |