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

Unified Diff: chrome/browser/automation/automation_provider_observers_chromeos.cc

Issue 10382197: Add PyAuto test for DeviceGuestModeEnabled policy (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Grammar/spelling fixes in comment. Created 8 years, 7 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
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;

Powered by Google App Engine
This is Rietveld 408576698