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

Unified Diff: chrome/browser/extensions/extension_function.h

Issue 3210007: Add support for a "split" incognito behavior for extensions. (Closed)
Patch Set: latest Created 10 years, 4 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_function.h
diff --git a/chrome/browser/extensions/extension_function.h b/chrome/browser/extensions/extension_function.h
index 51f25fe94d4a226e7518533107b2b50e94e76699..b48d0a90411e85e299f05eff35d4f6157b2c2215 100644
--- a/chrome/browser/extensions/extension_function.h
+++ b/chrome/browser/extensions/extension_function.h
@@ -149,7 +149,10 @@ class ExtensionFunction : public base::RefCountedThreadSafe<ExtensionFunction> {
// of this call.
bool has_callback_;
- // True if this callback should include information from incognito contexts.
+ // True if this callback should include information from incognito contexts
+ // even if our profile_ is non-incognito. Note that in the case of a "split"
+ // mode extension, this will always be false, and we will limit access to
+ // data from within the same profile_ (either incognito or not).
bool include_incognito_;
// True if the call was made in response of user gesture.
« no previous file with comments | « chrome/browser/extensions/extension_devtools_bridge.cc ('k') | chrome/browser/extensions/extension_function_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698