Index: chrome/browser/ui/webui/history_ui.cc |
=================================================================== |
--- chrome/browser/ui/webui/history_ui.cc (revision 91968) |
+++ chrome/browser/ui/webui/history_ui.cc (working copy) |
@@ -25,6 +25,7 @@ |
#include "chrome/browser/ui/browser_list.h" |
#include "chrome/browser/ui/webui/chrome_web_ui_data_source.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" |
@@ -138,7 +139,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>(profile->GetOriginalProfile())); |
return WebUIMessageHandler::Attach(web_ui); |
} |
@@ -365,10 +366,10 @@ |
return options; |
} |
-void BrowsingHistoryHandler::Observe(NotificationType type, |
+void BrowsingHistoryHandler::Observe(int type, |
const NotificationSource& source, |
const NotificationDetails& details) { |
- if (type != NotificationType::HISTORY_URLS_DELETED) { |
+ if (type != chrome::NOTIFICATION_HISTORY_URLS_DELETED) { |
NOTREACHED(); |
return; |
} |