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

Unified Diff: chrome/browser/chromeos/locale_change_guard.cc

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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/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) {

Powered by Google App Engine
This is Rietveld 408576698