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

Unified Diff: extensions/browser/extension_util.h

Issue 1351223003: Allow extensions to specify that they are not allowed in incognito mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add expectations for IncognitoInfo to test Created 5 years, 3 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
« no previous file with comments | « chrome/browser/extensions/installed_loader.cc ('k') | extensions/browser/extension_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_util.h
diff --git a/extensions/browser/extension_util.h b/extensions/browser/extension_util.h
index 6bd3c86ea16c0bd69f8e97c351b2763f2c7755d6..b5f758edb1d226b3906bd3eb4f7eb481f5a3d786 100644
--- a/extensions/browser/extension_util.h
+++ b/extensions/browser/extension_util.h
@@ -14,7 +14,7 @@ class BrowserContext;
}
namespace extensions {
-
+class Extension;
struct ExtensionInfo;
namespace util {
@@ -40,6 +40,9 @@ bool HasIsolatedStorage(const ExtensionInfo& info);
bool SiteHasIsolatedStorage(const GURL& extension_site_url,
content::BrowserContext* context);
+// Returns true if the extension can be enabled in incognito mode.
+bool CanBeIncognitoEnabled(const Extension* extension);
+
} // namespace util
} // namespace extensions
« no previous file with comments | « chrome/browser/extensions/installed_loader.cc ('k') | extensions/browser/extension_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698