| Index: chrome/browser/automation/automation_event_observers.h
|
| diff --git a/chrome/browser/automation/automation_event_observers.h b/chrome/browser/automation/automation_event_observers.h
|
| index 984adc4e47f06481f9678e4935a1228650d049fe..1587f69336610516346e18b6ea896ec17efb3fa3 100644
|
| --- a/chrome/browser/automation/automation_event_observers.h
|
| +++ b/chrome/browser/automation/automation_event_observers.h
|
| @@ -82,7 +82,9 @@ class DomEventObserver
|
|
|
| // Event observer that listens for the completion of login.
|
| class LoginEventObserver
|
| - : public AutomationEventObserver, public chromeos::LoginStatusConsumer {
|
| + : public AutomationEventObserver,
|
| + public chromeos::LoginStatusConsumer,
|
| + public content::NotificationObserver {
|
| public:
|
| LoginEventObserver(AutomationEventQueue* event_queue,
|
| chromeos::ExistingUserController* controller,
|
| @@ -94,10 +96,15 @@ class LoginEventObserver
|
| virtual void OnLoginSuccess(const std::string& username,
|
| const std::string& password,
|
| bool pending_requests, bool using_oauth) OVERRIDE;
|
| + // Overridden from content::NotificationObserver.
|
| + virtual void Observe(int type,
|
| + const content::NotificationSource& source,
|
| + const content::NotificationDetails& details) OVERRIDE;
|
|
|
| private:
|
| chromeos::ExistingUserController* controller_;
|
| base::WeakPtr<AutomationProvider> automation_;
|
| + content::NotificationRegistrar registrar_;
|
|
|
| void _NotifyLoginEvent(const std::string& error_string);
|
|
|
|
|