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

Unified Diff: chrome/browser/themes/theme_service.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/themes/theme_service.h ('k') | chrome/browser/translate/translate_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/themes/theme_service.cc
===================================================================
--- chrome/browser/themes/theme_service.cc (revision 91968)
+++ chrome/browser/themes/theme_service.cc (working copy)
@@ -11,10 +11,10 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/themes/browser_theme_pack.h"
#include "chrome/common/chrome_constants.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/pref_names.h"
#include "content/browser/user_metrics.h"
#include "content/common/notification_service.h"
-#include "content/common/notification_type.h"
#include "grit/theme_resources.h"
#include "grit/theme_resources_standard.h"
#include "grit/ui_resources.h"
@@ -215,7 +215,7 @@
// installed but not loaded (which may confuse listeners to
// BROWSER_THEME_CHANGED).
registrar_.Add(this,
- NotificationType::EXTENSION_LOADED,
+ chrome::NOTIFICATION_EXTENSION_LOADED,
Source<Profile>(profile_));
LoadThemePrefs();
@@ -602,7 +602,7 @@
VLOG(1) << "Sending BROWSER_THEME_CHANGED";
// Redraw!
NotificationService* service = NotificationService::current();
- service->Notify(NotificationType::BROWSER_THEME_CHANGED,
+ service->Notify(chrome::NOTIFICATION_BROWSER_THEME_CHANGED,
Source<ThemeService>(this),
NotificationService::NoDetails());
#if defined(OS_MACOSX)
@@ -616,10 +616,10 @@
}
#endif
-void ThemeService::Observe(NotificationType type,
+void ThemeService::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- DCHECK(type == NotificationType::EXTENSION_LOADED);
+ DCHECK(type == chrome::NOTIFICATION_EXTENSION_LOADED);
const Extension* extension = Details<const Extension>(details).ptr();
if (!extension->is_theme()) {
return;
« no previous file with comments | « chrome/browser/themes/theme_service.h ('k') | chrome/browser/translate/translate_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698