Index: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm |
diff --git a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm |
index 6145348aad97eb5e779708f3d4852c996fce9870..170b37f2aba0cf2f10cd75c6aa425b4c7b7a8a53 100644 |
--- a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm |
+++ b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm |
@@ -146,8 +146,6 @@ LocationBarViewMac::LocationBarViewMac(AutocompleteTextField* field, |
this, chrome::NOTIFICATION_EXTENSION_PAGE_ACTION_VISIBILITY_CHANGED, |
content::NotificationService::AllSources()); |
content::Source<Profile> profile_source = content::Source<Profile>(profile); |
- registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_LOCATION_BAR_UPDATED, |
- profile_source); |
registrar_.Add( |
this, chrome::NOTIFICATION_EXTENSION_LOADED_DEPRECATED, profile_source); |
registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED, |
@@ -630,14 +628,6 @@ void LocationBarViewMac::Observe(int type, |
break; |
} |
- case chrome::NOTIFICATION_EXTENSION_LOCATION_BAR_UPDATED: { |
- // Only update if the updated action box was for the active tab contents. |
- WebContents* target_tab = content::Details<WebContents>(details).ptr(); |
- if (target_tab == GetWebContents()) |
- UpdatePageActions(); |
- break; |
- } |
- |
case chrome::NOTIFICATION_EXTENSION_LOADED_DEPRECATED: |
case chrome::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED: |
Update(NULL); |