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

Unified Diff: extensions/browser/extension_util.h

Issue 2241203003: Pass user session type to extension feature checks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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: extensions/browser/extension_util.h
diff --git a/extensions/browser/extension_util.h b/extensions/browser/extension_util.h
index cdd4218ad14be242f26dc0ff866b0640bb9e7786..17d4e23c901cb56b6ad879fb414fbf5002dbae9b 100644
--- a/extensions/browser/extension_util.h
+++ b/extensions/browser/extension_util.h
@@ -7,6 +7,8 @@
#include <string>
+#include "extensions/common/features/feature_session_type.h"
+
class GURL;
namespace content {
@@ -34,6 +36,9 @@ bool SiteHasIsolatedStorage(const GURL& extension_site_url,
// Returns true if the extension can be enabled in incognito mode.
bool CanBeIncognitoEnabled(const Extension* extension);
+// Returns the session type based on the type of the user that is logged in.
+FeatureSessionType GetCurrentSessionType();
+
} // namespace util
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698