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

Unified Diff: extensions/renderer/dispatcher.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/renderer/dispatcher.h
diff --git a/extensions/renderer/dispatcher.h b/extensions/renderer/dispatcher.h
index 49d9aacf5b6866f003ca7eba1f00e4950b742641..e0d32cede1797a06865dc413d34263afded79311 100644
--- a/extensions/renderer/dispatcher.h
+++ b/extensions/renderer/dispatcher.h
@@ -202,6 +202,7 @@ class Dispatcher : public content::RenderThreadObserver,
int tab_id);
void OnUsingWebRequestAPI(bool webrequest_used);
void OnSetActivityLoggingEnabled(bool enabled);
+ void OnSetUserSessionType(Feature::SessionType session_type);
// UserScriptSetManager::Observer implementation.
void OnUserScriptsUpdated(const std::set<HostID>& changed_hosts) override;
@@ -314,6 +315,11 @@ class Dispatcher : public content::RenderThreadObserver,
// Whether or not extension activity is enabled.
bool activity_logging_enabled_;
+ // The session type in which the process is running. The session type depends
+ // on the type of user which is logged the session (e.g. kiosk app, regular
+ // user).
+ Feature::SessionType session_type_;
+
// The WebView partition ID associated with this process's storage partition,
// if this renderer is a WebView guest render process. Otherwise, this will be
// empty.

Powered by Google App Engine
This is Rietveld 408576698