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

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: split out some stuff 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..cef9bf5b2023d9d38bd8c2d81c555dbba5ca78bf 100644
--- a/extensions/browser/extension_util.h
+++ b/extensions/browser/extension_util.h
@@ -7,6 +7,8 @@
#include <string>
+#include "extensions/common/features/feature.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.
+Feature::SessionType GetCurrentSessionType();
+
} // namespace util
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698