Chromium Code Reviews| Index: chrome/browser/ui/browser.cc |
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
| index 66990b19eabdc543c08b2798849d14e905f76b8a..422b95c2983a7fd2c68f004bdb9060865a876ed8 100644 |
| --- a/chrome/browser/ui/browser.cc |
| +++ b/chrome/browser/ui/browser.cc |
| @@ -273,13 +273,13 @@ Browser::Browser(Type type, Profile* profile) |
| registrar_.Add(this, content::NOTIFICATION_SSL_VISIBLE_STATE_CHANGED, |
| NotificationService::AllSources()); |
| registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UPDATE_DISABLED, |
| - NotificationService::AllSources()); |
| + Source<Profile>(profile_)); |
| registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_LOADED, |
| - NotificationService::AllSources()); |
| + Source<Profile>(profile_)); |
| registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNLOADED, |
| - NotificationService::AllSources()); |
| + Source<Profile>(profile_)); |
| registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNINSTALLED, |
| - NotificationService::AllSources()); |
| + Source<Profile>(profile_)); |
| registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_PROCESS_TERMINATED, |
| NotificationService::AllSources()); |
| registrar_.Add( |
| @@ -3920,7 +3920,8 @@ void Browser::Observe(int type, |
| } |
| case chrome::NOTIFICATION_EXTENSION_PROCESS_TERMINATED: { |
| - if (window()->GetLocationBar()) |
| + Profile* profile = Source<Profile>(source).ptr(); |
| + if (profile_->IsSameProfile(profile) && window()->GetLocationBar()) |
|
jstritar
2011/08/30 15:06:31
I think this can come from an incognito profile, s
|
| window()->GetLocationBar()->InvalidatePageActions(); |
| break; |
| } |