| Index: chrome/browser/history/top_sites.cc
|
| ===================================================================
|
| --- chrome/browser/history/top_sites.cc (revision 91771)
|
| +++ chrome/browser/history/top_sites.cc (working copy)
|
| @@ -22,6 +22,7 @@
|
| #include "chrome/browser/prefs/scoped_user_pref_update.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/ui/webui/ntp/most_visited_handler.h"
|
| +#include "chrome/common/chrome_notification_types.h"
|
| #include "chrome/common/chrome_switches.h"
|
| #include "chrome/common/pref_names.h"
|
| #include "chrome/common/thumbnail_score.h"
|
| @@ -142,7 +143,7 @@
|
| return;
|
|
|
| if (NotificationService::current()) {
|
| - registrar_.Add(this, NotificationType::HISTORY_URLS_DELETED,
|
| + registrar_.Add(this, chrome::HISTORY_URLS_DELETED,
|
| Source<Profile>(profile_));
|
| registrar_.Add(this, NotificationType::NAV_ENTRY_COMMITTED,
|
| NotificationService::AllSources());
|
| @@ -790,7 +791,7 @@
|
| if (!loaded_)
|
| return;
|
|
|
| - if (type == NotificationType::HISTORY_URLS_DELETED) {
|
| + if (type == chrome::HISTORY_URLS_DELETED) {
|
| Details<history::URLsDeletedDetails> deleted_details(details);
|
| if (deleted_details->all_history) {
|
| SetTopSites(MostVisitedURLList());
|
| @@ -911,7 +912,7 @@
|
|
|
| ProcessPendingCallbacks(pending_callbacks, filtered_urls);
|
|
|
| - NotificationService::current()->Notify(NotificationType::TOP_SITES_LOADED,
|
| + NotificationService::current()->Notify(chrome::TOP_SITES_LOADED,
|
| Source<Profile>(profile_),
|
| Details<TopSites>(this));
|
| }
|
| @@ -931,7 +932,7 @@
|
|
|
| void TopSites::NotifyTopSitesChanged() {
|
| NotificationService::current()->Notify(
|
| - NotificationType::TOP_SITES_CHANGED,
|
| + chrome::TOP_SITES_CHANGED,
|
| Source<TopSites>(this),
|
| NotificationService::NoDetails());
|
| }
|
| @@ -1005,7 +1006,7 @@
|
|
|
| // Used only in testing.
|
| NotificationService::current()->Notify(
|
| - NotificationType::TOP_SITES_UPDATED,
|
| + chrome::TOP_SITES_UPDATED,
|
| Source<TopSites>(this),
|
| Details<CancelableRequestProvider::Handle>(&handle));
|
| }
|
|
|