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

Unified Diff: chrome/browser/extensions/extension_history_api.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/extensions/extension_history_api.h ('k') | chrome/browser/extensions/extension_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_history_api.cc
===================================================================
--- chrome/browser/extensions/extension_history_api.cc (revision 91968)
+++ chrome/browser/extensions/extension_history_api.cc (working copy)
@@ -15,8 +15,8 @@
#include "chrome/browser/history/history.h"
#include "chrome/browser/history/history_types.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/common/chrome_notification_types.h"
#include "content/common/notification_service.h"
-#include "content/common/notification_type.h"
namespace keys = extension_history_api_constants;
@@ -72,23 +72,23 @@
NotificationSource source = Source<Profile>(profile);
CHECK(registrar_.IsEmpty());
registrar_.Add(this,
- NotificationType::HISTORY_URL_VISITED,
+ chrome::NOTIFICATION_HISTORY_URL_VISITED,
source);
registrar_.Add(this,
- NotificationType::HISTORY_URLS_DELETED,
+ chrome::NOTIFICATION_HISTORY_URLS_DELETED,
source);
}
-void ExtensionHistoryEventRouter::Observe(NotificationType type,
+void ExtensionHistoryEventRouter::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- switch (type.value) {
- case NotificationType::HISTORY_URL_VISITED:
+ switch (type) {
+ case chrome::NOTIFICATION_HISTORY_URL_VISITED:
HistoryUrlVisited(
Source<Profile>(source).ptr(),
Details<const history::URLVisitedDetails>(details).ptr());
break;
- case NotificationType::HISTORY_URLS_DELETED:
+ case chrome::NOTIFICATION_HISTORY_URLS_DELETED:
HistoryUrlsRemoved(
Source<Profile>(source).ptr(),
Details<const history::URLsDeletedDetails>(details).ptr());
« no previous file with comments | « chrome/browser/extensions/extension_history_api.h ('k') | chrome/browser/extensions/extension_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698