Index: chrome/browser/automation/automation_provider_observers_chromeos.cc |
diff --git a/chrome/browser/automation/automation_provider_observers_chromeos.cc b/chrome/browser/automation/automation_provider_observers_chromeos.cc |
index ead07cbf90d4fa253ec0a41e64c956a118bbbae0..33c8a2f2fe48ee346881c21606418ab1d206b962 100644 |
--- a/chrome/browser/automation/automation_provider_observers_chromeos.cc |
+++ b/chrome/browser/automation/automation_provider_observers_chromeos.cc |
@@ -53,16 +53,16 @@ LoginWebuiReadyObserver::LoginWebuiReadyObserver( |
: automation_(automation->AsWeakPtr()) { |
registrar_.Add(this, chrome::NOTIFICATION_LOGIN_WEBUI_READY, |
content::NotificationService::AllSources()); |
-} |
- |
-LoginWebuiReadyObserver::~LoginWebuiReadyObserver() { |
+ registrar_.Add(this, chrome::NOTIFICATION_ACCOUNT_PICKER_WEBUI_READY, |
Nikita (slow)
2012/05/16 15:56:13
Should add these instead:
NOTIFICATION_LOGIN_USER_
bartfab (slow)
2012/05/16 18:07:10
Thanks. I had seen that code but did not realize t
|
+ content::NotificationService::AllSources()); |
} |
void LoginWebuiReadyObserver::Observe( |
int type, |
const content::NotificationSource& source, |
const content::NotificationDetails& details) { |
- DCHECK(type == chrome::NOTIFICATION_LOGIN_WEBUI_READY); |
+ DCHECK(type == chrome::NOTIFICATION_LOGIN_WEBUI_READY || |
+ type == chrome::NOTIFICATION_ACCOUNT_PICKER_WEBUI_READY); |
if (automation_) |
automation_->OnLoginWebuiReady(); |
delete this; |