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

Unified Diff: chrome/browser/extensions/extension_service.cc

Issue 10831008: Refactor and fix declarative webRequest API permissions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 8 years, 5 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/extensions/extension_service.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index ba17841c743a37b9bcc5953b625b3b2402eb2918..765064feab08d5be028871c551e5b901b2653286 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -1047,6 +1047,12 @@ void ExtensionService::NotifyExtensionUnloaded(
chrome::NOTIFICATION_EXTENSION_UNLOADED,
content::Source<Profile>(profile_),
content::Details<UnloadedExtensionInfo>(&details));
+ if (profile_->HasOffTheRecordProfile()) {
+ content::NotificationService::current()->Notify(
+ chrome::NOTIFICATION_EXTENSION_UNLOADED,
+ content::Source<Profile>(profile_->GetOffTheRecordProfile()),
+ content::Details<UnloadedExtensionInfo>(&details));
battre 2012/07/25 18:12:04 I wonder whether this change may have any negative
Matt Perry 2012/07/25 21:27:56 It's unconventional. Most of our notifications for
Yoyo Zhou 2012/07/25 21:44:45 I don't think this is a good idea. It's better to
battre 2012/07/26 16:38:43 Done.
+ }
for (content::RenderProcessHost::iterator i(
content::RenderProcessHost::AllHostsIterator());

Powered by Google App Engine
This is Rietveld 408576698