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

Unified Diff: chrome/browser/ui/webui/options/personal_options_handler.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
« no previous file with comments | « chrome/browser/ui/webui/options/personal_options_handler.h ('k') | chrome/browser/ui/webui/plugins_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/personal_options_handler.cc
===================================================================
--- chrome/browser/ui/webui/options/personal_options_handler.cc (revision 91968)
+++ chrome/browser/ui/webui/options/personal_options_handler.cc (working copy)
@@ -24,6 +24,7 @@
#include "chrome/browser/themes/theme_service.h"
#include "chrome/browser/themes/theme_service_factory.h"
#include "chrome/browser/ui/webui/options/options_managed_banner_handler.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/net/gaia/google_service_auth_error.h"
@@ -52,7 +53,7 @@
multiprofile_ = browser_command_line.HasSwitch(switches::kMultiProfiles);
#if defined(OS_CHROMEOS)
registrar_.Add(this,
- NotificationType::LOGIN_USER_IMAGE_CHANGED,
+ chrome::LOGIN_USER_IMAGE_CHANGED,
NotificationService::AllSources());
#endif
}
@@ -205,13 +206,13 @@
#endif
}
-void PersonalOptionsHandler::Observe(NotificationType type,
+void PersonalOptionsHandler::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- if (type == NotificationType::BROWSER_THEME_CHANGED) {
+ if (type == chrome::NOTIFICATION_BROWSER_THEME_CHANGED) {
ObserveThemeChanged();
#if defined(OS_CHROMEOS)
- } else if (type == NotificationType::LOGIN_USER_IMAGE_CHANGED) {
+ } else if (type == chrome::LOGIN_USER_IMAGE_CHANGED) {
LoadAccountPicture(NULL);
#endif
} else {
@@ -356,7 +357,7 @@
OPTIONS_PAGE_CONTENT));
// Listen for theme installation.
- registrar_.Add(this, NotificationType::BROWSER_THEME_CHANGED,
+ registrar_.Add(this, chrome::NOTIFICATION_BROWSER_THEME_CHANGED,
NotificationService::AllSources());
ObserveThemeChanged();
« no previous file with comments | « chrome/browser/ui/webui/options/personal_options_handler.h ('k') | chrome/browser/ui/webui/plugins_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698