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

Unified Diff: chrome/browser/ui/webui/history2_ui.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/history2_ui.h ('k') | chrome/browser/ui/webui/history_ui.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/history2_ui.cc
===================================================================
--- chrome/browser/ui/webui/history2_ui.cc (revision 91968)
+++ chrome/browser/ui/webui/history2_ui.cc (working copy)
@@ -24,6 +24,7 @@
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/webui/favicon_source.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/jstemplate_builder.h"
#include "chrome/common/time_format.h"
#include "chrome/common/url_constants.h"
@@ -135,7 +136,7 @@
new FaviconSource(profile, FaviconSource::FAVICON));
// Get notifications when history is cleared.
- registrar_.Add(this, NotificationType::HISTORY_URLS_DELETED,
+ registrar_.Add(this, chrome::NOTIFICATION_HISTORY_URLS_DELETED,
Source<Profile>(web_ui->GetProfile()->GetOriginalProfile()));
return WebUIMessageHandler::Attach(web_ui);
}
@@ -374,10 +375,10 @@
return options;
}
-void BrowsingHistoryHandler2::Observe(NotificationType type,
+void BrowsingHistoryHandler2::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- if (type != NotificationType::HISTORY_URLS_DELETED) {
+ if (type != chrome::NOTIFICATION_HISTORY_URLS_DELETED) {
NOTREACHED();
return;
}
« no previous file with comments | « chrome/browser/ui/webui/history2_ui.h ('k') | chrome/browser/ui/webui/history_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698