summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_process_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/extension_process_manager.cc')
-rw-r--r--chrome/browser/extensions/extension_process_manager.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_process_manager.cc b/chrome/browser/extensions/extension_process_manager.cc
index 3121d3c..7ecee27 100644
--- a/chrome/browser/extensions/extension_process_manager.cc
+++ b/chrome/browser/extensions/extension_process_manager.cc
@@ -232,6 +232,19 @@ void ExtensionProcessManager::Observe(NotificationType type,
break;
}
+ case NotificationType::EXTENSION_INCOGNITO_CHANGED: {
+ Extension* extension =
+ Details<std::pair<Extension*, bool> >(details).ptr()->first;
+ bool incognito_enabled =
+ Details<std::pair<Extension*, bool> >(details).ptr()->second;
+ RenderProcessHost* rph = GetExtensionProcess(extension->id());
+ if (rph) {
+ rph->Send(new ViewMsg_Extension_ExtensionSetIncognitoEnabled(
+ extension->id(), incognito_enabled));
+ }
+ break;
+ }
+
case NotificationType::EXTENSION_HOST_DESTROYED: {
ExtensionHost* host = Details<ExtensionHost>(details).ptr();
all_hosts_.erase(host);