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

Unified Diff: chrome/browser/user_style_sheet_watcher.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/user_style_sheet_watcher.h ('k') | chrome/browser/visitedlink/visitedlink_event_listener.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/user_style_sheet_watcher.cc
===================================================================
--- chrome/browser/user_style_sheet_watcher.cc (revision 91968)
+++ chrome/browser/user_style_sheet_watcher.cc (working copy)
@@ -6,8 +6,9 @@
#include "base/base64.h"
#include "base/file_util.h"
+#include "chrome/common/chrome_notification_types.h"
+#include "content/common/content_notification_types.h"
#include "content/common/notification_service.h"
-#include "content/common/notification_type.h"
using ::base::files::FilePathWatcher;
@@ -77,7 +78,7 @@
void UserStyleSheetLoader::NotifyLoaded() {
if (has_loaded_) {
NotificationService::current()->Notify(
- NotificationType::USER_STYLE_SHEET_UPDATED,
+ chrome::NOTIFICATION_USER_STYLE_SHEET_UPDATED,
Source<UserStyleSheetLoader>(this),
NotificationService::NoDetails());
}
@@ -131,7 +132,7 @@
// Listen for when the first render view host is created. If we load
// too fast, the first tab won't hear the notification and won't get
// the user style sheet.
- registrar_.Add(this, NotificationType::RENDER_VIEW_HOST_CREATED_FOR_TAB,
+ registrar_.Add(this, content::NOTIFICATION_RENDER_VIEW_HOST_CREATED_FOR_TAB,
NotificationService::AllSources());
}
@@ -163,9 +164,9 @@
return loader_->user_style_sheet();
}
-void UserStyleSheetWatcher::Observe(NotificationType type,
+void UserStyleSheetWatcher::Observe(int type,
const NotificationSource& source, const NotificationDetails& details) {
- DCHECK(type == NotificationType::RENDER_VIEW_HOST_CREATED_FOR_TAB);
+ DCHECK(type == content::NOTIFICATION_RENDER_VIEW_HOST_CREATED_FOR_TAB);
loader_->NotifyLoaded();
registrar_.RemoveAll();
}
« no previous file with comments | « chrome/browser/user_style_sheet_watcher.h ('k') | chrome/browser/visitedlink/visitedlink_event_listener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698