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

Unified Diff: extensions/renderer/user_script_set.cc

Issue 885493007: Refactoring: de-couple Extensions from "script injection System" [render side] : 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Plumb script_injection_instance_id from WebViewGuest to script injection. Created 5 years, 11 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/user_script_set.cc
diff --git a/extensions/renderer/user_script_set.cc b/extensions/renderer/user_script_set.cc
index e95843d392880bebd48ce1b26bdfebce5b903951..cbb421355596f4cb24c459fcc010bc49571e0b89 100644
--- a/extensions/renderer/user_script_set.cc
+++ b/extensions/renderer/user_script_set.cc
@@ -211,7 +211,9 @@ scoped_ptr<ScriptInjection> UserScriptSet::GetInjectionForScript(
injection.reset(new ScriptInjection(
injector.Pass(),
web_frame->toWebLocalFrame(),
- extension->id(),
+ HostID(HostID::EXTENSIONS, extension->id()),
+ // TODO(hanxi): store and obtain the instance id from the UserScript.
+ Host::kDefaultInstanceId,
run_location,
tab_id));
}

Powered by Google App Engine
This is Rietveld 408576698