| Index: chrome/browser/history/history.cc
|
| ===================================================================
|
| --- chrome/browser/history/history.cc (revision 91771)
|
| +++ chrome/browser/history/history.cc (working copy)
|
| @@ -44,6 +44,7 @@
|
| #include "chrome/browser/ui/profile_error_dialog.h"
|
| #include "chrome/browser/visitedlink/visitedlink_master.h"
|
| #include "chrome/common/chrome_constants.h"
|
| +#include "chrome/common/chrome_notification_types.h"
|
| #include "chrome/common/pref_names.h"
|
| #include "chrome/common/thumbnail_score.h"
|
| #include "chrome/common/url_constants.h"
|
| @@ -136,9 +137,9 @@
|
| no_db_(false),
|
| needs_top_sites_migration_(false) {
|
| DCHECK(profile_);
|
| - registrar_.Add(this, NotificationType::HISTORY_URLS_DELETED,
|
| + registrar_.Add(this, chrome::HISTORY_URLS_DELETED,
|
| Source<Profile>(profile_));
|
| - registrar_.Add(this, NotificationType::TEMPLATE_URL_REMOVED,
|
| + registrar_.Add(this, chrome::TEMPLATE_URL_REMOVED,
|
| Source<Profile>(profile_));
|
| }
|
|
|
| @@ -625,7 +626,7 @@
|
| return;
|
|
|
| switch (type.value) {
|
| - case NotificationType::HISTORY_URLS_DELETED: {
|
| + case chrome::HISTORY_URLS_DELETED: {
|
| // Update the visited link system for deleted URLs. We will update the
|
| // visited link system for added URLs as soon as we get the add
|
| // notification (we don't have to wait for the backend, which allows us to
|
| @@ -648,7 +649,7 @@
|
| break;
|
| }
|
|
|
| - case NotificationType::TEMPLATE_URL_REMOVED:
|
| + case chrome::TEMPLATE_URL_REMOVED:
|
| DeleteAllSearchTermsForKeyword(*(Details<TemplateURLID>(details).ptr()));
|
| break;
|
|
|
| @@ -789,7 +790,7 @@
|
|
|
| void HistoryService::OnDBLoaded() {
|
| backend_loaded_ = true;
|
| - NotificationService::current()->Notify(NotificationType::HISTORY_LOADED,
|
| + NotificationService::current()->Notify(chrome::HISTORY_LOADED,
|
| Source<Profile>(profile_),
|
| Details<HistoryService>(this));
|
| if (thread_ && profile_) {
|
|
|