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

Unified Diff: extensions/renderer/script_context_set.cc

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/script_context_set.cc
diff --git a/extensions/renderer/script_context_set.cc b/extensions/renderer/script_context_set.cc
index 276acae073c4459bddac1ce7e4cfb274d4d4dbc4..7926a8494893d26097980afb165f6cdace12df12 100644
--- a/extensions/renderer/script_context_set.cc
+++ b/extensions/renderer/script_context_set.cc
@@ -37,6 +37,7 @@ ScriptContextSet::~ScriptContextSet() {
ScriptContext* ScriptContextSet::Register(
blink::WebLocalFrame* frame,
const v8::Local<v8::Context>& v8_context,
+ Feature::SessionType session_type,
int extension_group,
int world_id) {
const Extension* extension =
@@ -53,9 +54,9 @@ ScriptContext* ScriptContextSet::Register(
ScriptContext::GetEffectiveDocumentURL(frame, frame_url, true),
frame->document().getSecurityOrigin());
- ScriptContext* context =
- new ScriptContext(v8_context, frame, extension, context_type,
- effective_extension, effective_context_type);
+ ScriptContext* context = new ScriptContext(
+ v8_context, frame, extension, context_type, session_type,
+ effective_extension, effective_context_type);
contexts_.insert(context); // takes ownership
return context;
}

Powered by Google App Engine
This is Rietveld 408576698