| 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;
|
|
|