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

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

Issue 567037: Initial work on making extensions work in incognito mode. (Closed)
Patch Set: added experimental requirement Created 10 years, 10 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/extensions_service.h
diff --git a/chrome/browser/extensions/extensions_service.h b/chrome/browser/extensions/extensions_service.h
index 5b4d37ee60049a1d98274084a6962010f33e5737..078ac015a8c7949166c67b7c02e31908fea7ea87 100644
--- a/chrome/browser/extensions/extensions_service.h
+++ b/chrome/browser/extensions/extensions_service.h
@@ -106,6 +106,10 @@ class ExtensionsService
const base::Time& time);
virtual base::Time LastPingDay(const std::string& extension_id);
+ // Returns true if this extension can run in an incognito window. The
+ // decision is based on both user consent and the extension having the right
+ // permission.
+ bool IsIncognitoEnabled(const std::string& extension_id);
const FilePath& install_directory() const { return install_directory_; }
« no previous file with comments | « chrome/browser/extensions/extension_toolbar_model.cc ('k') | chrome/browser/extensions/extensions_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698