Index: chrome/browser/chromeos/login/existing_user_controller.h |
diff --git a/chrome/browser/chromeos/login/existing_user_controller.h b/chrome/browser/chromeos/login/existing_user_controller.h |
index 1de2597abf29d124001ea68b7bb7f569ccf86b05..6ec190e1985cf16aa4f38871b50c05fbccef39f2 100644 |
--- a/chrome/browser/chromeos/login/existing_user_controller.h |
+++ b/chrome/browser/chromeos/login/existing_user_controller.h |
@@ -20,6 +20,7 @@ |
#include "chrome/browser/chromeos/login/login_utils.h" |
#include "chrome/browser/chromeos/login/user.h" |
#include "chrome/browser/chromeos/settings/device_settings_service.h" |
+#include "chrome/browser/policy/policy_change_watcher.h" |
#include "content/public/browser/notification_observer.h" |
#include "content/public/browser/notification_registrar.h" |
#include "googleurl/src/gurl.h" |
@@ -37,10 +38,12 @@ class LoginDisplayHost; |
// all login UI implementation. |
// ExistingUserController maintains it's own life cycle and deletes itself when |
// the user logs in (or chooses to see other settings). |
-class ExistingUserController : public LoginDisplay::Delegate, |
- public content::NotificationObserver, |
- public LoginPerformer::Delegate, |
- public LoginUtils::Delegate { |
+class ExistingUserController |
+ : public LoginDisplay::Delegate, |
+ public content::NotificationObserver, |
+ public LoginPerformer::Delegate, |
+ public LoginUtils::Delegate, |
+ public policy::DevicePolicyChangeWatcher::Observer { |
public: |
// All UI initialization is deferred till Init() call. |
explicit ExistingUserController(LoginDisplayHost* host); |
@@ -88,6 +91,11 @@ class ExistingUserController : public LoginDisplay::Delegate, |
const content::NotificationSource& source, |
const content::NotificationDetails& details) OVERRIDE; |
+ // DevicePolicyChangeWatcher::Observer implementation. |
+ virtual void OnDevicePolicyStatusChanged( |
+ const std::vector<std::string>& |
+ users_with_changed_device_policy) OVERRIDE; |
+ |
// Set a delegate that we will pass LoginStatusConsumer events to. |
// Used for testing. |
void set_login_status_consumer(LoginStatusConsumer* consumer) { |