Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6496)

Unified Diff: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm

Issue 309173002: Delete NOTIFICATION_EXTENSION_LOCATION_BAR_UPDATED, never Notify()d. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « chrome/browser/chrome_notification_types.h ('k') | chrome/browser/ui/views/location_bar/location_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698