Commit a93089b1 authored by yoz@chromium.org's avatar yoz@chromium.org

Register Browser for extension events from the original profile.

This fixes incognito windows that weren't properly updating when extensions were loaded or unloaded.

BUG=103419,104525
TEST=See reproduction steps in 103419, comment 2. When an incognito window is open and an extension with page action is enabled or disabled, the action should appear or disappear in the incognito location bar accordingly.


Review URL: http://codereview.chromium.org/8623008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111205 0039d316-1c4b-4281-b951-d872f2087c98
parent 2a4e5617
......@@ -322,13 +322,13 @@ Browser::Browser(Type type, Profile* profile)
registrar_.Add(this, content::NOTIFICATION_SSL_VISIBLE_STATE_CHANGED,
content::NotificationService::AllSources());
registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UPDATE_DISABLED,
content::Source<Profile>(profile_));
content::Source<Profile>(profile_->GetOriginalProfile()));
registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_LOADED,
content::Source<Profile>(profile_));
content::Source<Profile>(profile_->GetOriginalProfile()));
registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNLOADED,
content::Source<Profile>(profile_));
content::Source<Profile>(profile_->GetOriginalProfile()));
registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNINSTALLED,
content::Source<Profile>(profile_));
content::Source<Profile>(profile_->GetOriginalProfile()));
registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_PROCESS_TERMINATED,
content::NotificationService::AllSources());
registrar_.Add(
......
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