Index: chrome/browser/ui/cocoa/history_menu_bridge.mm |
=================================================================== |
--- chrome/browser/ui/cocoa/history_menu_bridge.mm (revision 91880) |
+++ chrome/browser/ui/cocoa/history_menu_bridge.mm (working copy) |
@@ -103,7 +103,7 @@ |
// The service is not ready for use yet, so become notified when it does. |
if (!history_service_) { |
registrar_.Add( |
- this, NotificationType::HISTORY_LOADED, Source<Profile>(profile_)); |
+ this, chrome::HISTORY_LOADED, Source<Profile>(profile_)); |
} |
} |
@@ -114,12 +114,12 @@ |
// Unregister ourselves as observers and notifications. |
if (history_service_) { |
const NotificationSource& src = NotificationService::AllSources(); |
- registrar_.Remove(this, NotificationType::HISTORY_TYPED_URLS_MODIFIED, src); |
- registrar_.Remove(this, NotificationType::HISTORY_URL_VISITED, src); |
- registrar_.Remove(this, NotificationType::HISTORY_URLS_DELETED, src); |
+ registrar_.Remove(this, chrome::HISTORY_TYPED_URLS_MODIFIED, src); |
+ registrar_.Remove(this, chrome::HISTORY_URL_VISITED, src); |
+ registrar_.Remove(this, chrome::HISTORY_URLS_DELETED, src); |
} else { |
registrar_.Remove( |
- this, NotificationType::HISTORY_LOADED, Source<Profile>(profile_)); |
+ this, chrome::HISTORY_LOADED, Source<Profile>(profile_)); |
} |
if (tab_restore_service_) |
@@ -134,12 +134,12 @@ |
} |
} |
-void HistoryMenuBridge::Observe(NotificationType type, |
+void HistoryMenuBridge::Observe(int type, |
const NotificationSource& source, |
const NotificationDetails& details) { |
// A history service is now ready. Check to see if it's the one for the main |
// profile. If so, perform final initialization. |
- if (type == NotificationType::HISTORY_LOADED) { |
+ if (type == chrome::HISTORY_LOADED) { |
HistoryService* hs = |
profile_->GetHistoryService(Profile::EXPLICIT_ACCESS); |
if (hs != NULL && hs->BackendLoaded()) { |
@@ -148,7 +148,7 @@ |
// Found our HistoryService, so stop listening for this notification. |
registrar_.Remove(this, |
- NotificationType::HISTORY_LOADED, |
+ chrome::HISTORY_LOADED, |
Source<Profile>(profile_)); |
} |
} |
@@ -363,9 +363,9 @@ |
void HistoryMenuBridge::Init() { |
const NotificationSource& source = NotificationService::AllSources(); |
- registrar_.Add(this, NotificationType::HISTORY_TYPED_URLS_MODIFIED, source); |
- registrar_.Add(this, NotificationType::HISTORY_URL_VISITED, source); |
- registrar_.Add(this, NotificationType::HISTORY_URLS_DELETED, source); |
+ registrar_.Add(this, chrome::HISTORY_TYPED_URLS_MODIFIED, source); |
+ registrar_.Add(this, chrome::HISTORY_URL_VISITED, source); |
+ registrar_.Add(this, chrome::HISTORY_URLS_DELETED, source); |
} |
void HistoryMenuBridge::CreateMenu() { |