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

Unified Diff: chrome/browser/automation/automation_event_observers.h

Issue 10912142: [chromeos] Wait for initial page load after login (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 8 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/automation/automation_event_observers_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | chrome/browser/automation/automation_event_observers_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698