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

Unified Diff: chrome/browser/chromeos/login/existing_user_controller.cc

Issue 16254003: WIP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/chromeos/login/existing_user_controller.cc
diff --git a/chrome/browser/chromeos/login/existing_user_controller.cc b/chrome/browser/chromeos/login/existing_user_controller.cc
index 06f697ec7906a033097dec31addf20cbb4040189..a7ef1ee1e8259a615c62c4b98ea40edc91a77b15 100644
--- a/chrome/browser/chromeos/login/existing_user_controller.cc
+++ b/chrome/browser/chromeos/login/existing_user_controller.cc
@@ -163,6 +163,7 @@ ExistingUserController::ExistingUserController(LoginDisplayHost* host)
cros_settings_->AddSettingsObserver(kAccountsPrefAllowNewUser, this);
cros_settings_->AddSettingsObserver(kAccountsPrefAllowGuest, this);
cros_settings_->AddSettingsObserver(kAccountsPrefUsers, this);
+ g_browser_process->device_policy_change_watcher()->AddObserver(this);
}
void ExistingUserController::Init(const UserList& users) {
@@ -266,6 +267,12 @@ void ExistingUserController::Observe(
login_display_->OnUserImageChanged(*content::Details<User>(details).ptr());
}
+void ExistingUserController::OnDevicePolicyStatusChanged(
+ const std::vector<std::string>& users_with_changed_device_policy) {
+ LOG(ERROR) << "Device policy change for "
+ << users_with_changed_device_policy.size() << " users.";
+}
+
////////////////////////////////////////////////////////////////////////////////
// ExistingUserController, private:
@@ -277,6 +284,7 @@ ExistingUserController::~ExistingUserController() {
cros_settings_->RemoveSettingsObserver(kAccountsPrefAllowNewUser, this);
cros_settings_->RemoveSettingsObserver(kAccountsPrefAllowGuest, this);
cros_settings_->RemoveSettingsObserver(kAccountsPrefUsers, this);
+ g_browser_process->device_policy_change_watcher()->RemoveObserver(this);
if (current_controller_ == this) {
current_controller_ = NULL;

Powered by Google App Engine
This is Rietveld 408576698