Index: chrome/browser/chromeos/locale_change_guard.cc |
=================================================================== |
--- chrome/browser/chromeos/locale_change_guard.cc (revision 91880) |
+++ chrome/browser/chromeos/locale_change_guard.cc (working copy) |
@@ -43,14 +43,14 @@ |
note_(NULL), |
reverted_(false) { |
DCHECK(profile_); |
- registrar_.Add(this, NotificationType::OWNERSHIP_CHECKED, |
+ registrar_.Add(this, chrome::OWNERSHIP_CHECKED, |
NotificationService::AllSources()); |
} |
LocaleChangeGuard::~LocaleChangeGuard() {} |
void LocaleChangeGuard::OnLogin() { |
- registrar_.Add(this, NotificationType::LOAD_COMPLETED_MAIN_FRAME, |
+ registrar_.Add(this, chrome::LOAD_COMPLETED_MAIN_FRAME, |
NotificationService::AllSources()); |
} |
@@ -74,22 +74,22 @@ |
browser->ExecuteCommand(IDC_EXIT); |
} |
-void LocaleChangeGuard::Observe(NotificationType type, |
+void LocaleChangeGuard::Observe(int type, |
const NotificationSource& source, |
const NotificationDetails& details) { |
if (profile_ == NULL) { |
NOTREACHED(); |
return; |
} |
- switch (type.value) { |
- case NotificationType::LOAD_COMPLETED_MAIN_FRAME: { |
+ switch (type) { |
+ case chrome::LOAD_COMPLETED_MAIN_FRAME: { |
// We need to perform locale change check only once, so unsubscribe. |
- registrar_.Remove(this, NotificationType::LOAD_COMPLETED_MAIN_FRAME, |
+ registrar_.Remove(this, chrome::LOAD_COMPLETED_MAIN_FRAME, |
NotificationService::AllSources()); |
Check(); |
break; |
} |
- case NotificationType::OWNERSHIP_CHECKED: { |
+ case chrome::OWNERSHIP_CHECKED: { |
if (UserManager::Get()->current_user_is_owner()) { |
PrefService* local_state = g_browser_process->local_state(); |
if (local_state) { |