| Index: extensions/browser/api/web_view/web_view_internal_api.cc
|
| diff --git a/extensions/browser/api/web_view/web_view_internal_api.cc b/extensions/browser/api/web_view/web_view_internal_api.cc
|
| index 6270ec1eb9d8b7ac8bf177b86b6dfde49c80c1d0..db08c016088f2d8fed379665bdeeaeb055c5d3e0 100644
|
| --- a/extensions/browser/api/web_view/web_view_internal_api.cc
|
| +++ b/extensions/browser/api/web_view/web_view_internal_api.cc
|
| @@ -70,7 +70,9 @@ bool WebViewInternalNavigateFunction::RunAsyncSafe(WebViewGuest* guest) {
|
| }
|
|
|
| WebViewInternalExecuteCodeFunction::WebViewInternalExecuteCodeFunction()
|
| - : guest_instance_id_(0), guest_src_(GURL::EmptyGURL()) {
|
| + : guest_instance_id_(0),
|
| + guest_src_(GURL::EmptyGURL()),
|
| + script_injection_instance_id_(0) {
|
| }
|
|
|
| WebViewInternalExecuteCodeFunction::~WebViewInternalExecuteCodeFunction() {
|
| @@ -102,6 +104,10 @@ bool WebViewInternalExecuteCodeFunction::Init() {
|
| return false;
|
|
|
| details_ = details.Pass();
|
| + script_injection_instance_id_ =
|
| + WebViewGuest::GetOrGenerateScriptInjectionInstanceID(
|
| + render_view_host()->GetProcess()->GetID(), guest_instance_id_);
|
| +
|
| return true;
|
| }
|
|
|
| @@ -133,6 +139,10 @@ const GURL& WebViewInternalExecuteCodeFunction::GetWebViewSrc() const {
|
| return guest_src_;
|
| }
|
|
|
| +int WebViewInternalExecuteCodeFunction:: GetScriptInjectionInstanceId() const {
|
| + return script_injection_instance_id_;
|
| +}
|
| +
|
| WebViewInternalExecuteScriptFunction::WebViewInternalExecuteScriptFunction() {
|
| }
|
|
|
|
|