Index: chrome/browser/ui/webui/ntp/most_visited_handler.cc |
=================================================================== |
--- chrome/browser/ui/webui/ntp/most_visited_handler.cc (revision 91968) |
+++ chrome/browser/ui/webui/ntp/most_visited_handler.cc (working copy) |
@@ -25,12 +25,12 @@ |
#include "chrome/browser/ui/webui/favicon_source.h" |
#include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
#include "chrome/browser/ui/webui/ntp/thumbnail_source.h" |
+#include "chrome/common/chrome_notification_types.h" |
#include "chrome/common/pref_names.h" |
#include "chrome/common/url_constants.h" |
#include "content/browser/browser_thread.h" |
#include "content/browser/user_metrics.h" |
#include "content/common/notification_source.h" |
-#include "content/common/notification_type.h" |
#include "googleurl/src/gurl.h" |
#include "grit/chromium_strings.h" |
#include "grit/generated_resources.h" |
@@ -73,7 +73,7 @@ |
// Register for notification when TopSites changes so that we can update |
// ourself. |
- registrar_.Add(this, NotificationType::TOP_SITES_CHANGED, |
+ registrar_.Add(this, chrome::NOTIFICATION_TOP_SITES_CHANGED, |
Source<history::TopSites>(ts)); |
} |
@@ -349,10 +349,10 @@ |
return pages; |
} |
-void MostVisitedHandler::Observe(NotificationType type, |
+void MostVisitedHandler::Observe(int type, |
const NotificationSource& source, |
const NotificationDetails& details) { |
- DCHECK_EQ(type.value, NotificationType::TOP_SITES_CHANGED); |
+ DCHECK_EQ(type, chrome::NOTIFICATION_TOP_SITES_CHANGED); |
// Most visited urls changed, query again. |
StartQueryForMostVisited(); |