Commit b33c3217 authored by kalman@chromium.org's avatar kalman@chromium.org

Delete NOTIFICATION_EXTENSION_LOCATION_BAR_UPDATED, never Notify()d.

Review URL: https://codereview.chromium.org/309173002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274543 0039d316-1c4b-4281-b951-d872f2087c98
parent a2bfd0f0
......@@ -388,11 +388,6 @@ enum NotificationType {
// unloaded and reloaded. The source is a Profile.
NOTIFICATION_EXTENSIONS_READY,
// Sent when an extension icon being displayed in the location bar is updated.
// The source is the Profile and the details are the WebContents for
// the tab.
NOTIFICATION_EXTENSION_LOCATION_BAR_UPDATED,
// DEPRECATED: Use ExtensionRegistry::AddObserver instead.
//
// Sent when a new extension is loaded. The details are an Extension, and
......
......@@ -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);
......
......@@ -435,9 +435,6 @@ void LocationBarView::Init() {
hide_url_animation_->SetSlideDuration(175);
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,
......@@ -1786,13 +1783,6 @@ void LocationBarView::Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) {
switch (type) {
case chrome::NOTIFICATION_EXTENSION_LOCATION_BAR_UPDATED: {
// Only update if the updated action box was for the active tab contents.
if (content::Details<WebContents>(details).ptr() == GetWebContents())
UpdatePageActions();
break;
}
case chrome::NOTIFICATION_EXTENSION_LOADED_DEPRECATED:
case chrome::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED:
Update(NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment