Index: chrome/browser/extensions/extensions_service.cc |
diff --git a/chrome/browser/extensions/extensions_service.cc b/chrome/browser/extensions/extensions_service.cc |
index 98681de771ffa917dfc48d22c9a3c741b271ff2a..734bdef237ba728efe09662fc882f2f8dd90db3f 100644 |
--- a/chrome/browser/extensions/extensions_service.cc |
+++ b/chrome/browser/extensions/extensions_service.cc |
@@ -1336,6 +1336,13 @@ void ExtensionsService::SetIsIncognitoEnabled(const Extension* extension, |
} |
} |
+bool ExtensionsService::CanCrossIncognito(const Extension* extension) { |
+ // We allow the extension to see events and data from another profile iff it |
+ // uses "spanning" behavior and it has incognito access. "split" mode |
+ // extensions only see events for a matching profile. |
+ return IsIncognitoEnabled(extension) && !extension->incognito_split_mode(); |
+} |
+ |
bool ExtensionsService::AllowFileAccess(const Extension* extension) { |
return (CommandLine::ForCurrentProcess()->HasSwitch( |
switches::kDisableExtensionsFileAccessCheck) || |