Index: src/inspector/v8-injected-script-host.cc |
diff --git a/src/inspector/v8-injected-script-host.cc b/src/inspector/v8-injected-script-host.cc |
index 663e9e7b020f6d4d096763285d9bfb1094089f4d..47c51e809cc778c9ab8adcd174c4668e70b5eded 100644 |
--- a/src/inspector/v8-injected-script-host.cc |
+++ b/src/inspector/v8-injected-script-host.cc |
@@ -5,7 +5,7 @@ |
#include "src/inspector/v8-injected-script-host.h" |
#include "src/base/macros.h" |
-#include "src/inspector/injected-script-native.h" |
+#include "src/inspector/injected-script.h" |
#include "src/inspector/string-util.h" |
#include "src/inspector/v8-debugger.h" |
#include "src/inspector/v8-inspector-impl.h" |
@@ -309,16 +309,15 @@ void V8InjectedScriptHost::objectHasOwnPropertyCallback( |
void V8InjectedScriptHost::bindCallback( |
const v8::FunctionCallbackInfo<v8::Value>& info) { |
if (info.Length() < 2 || !info[1]->IsString()) return; |
- InjectedScriptNative* injectedScriptNative = |
- InjectedScriptNative::fromInjectedScriptHost(info.GetIsolate(), |
- info.Holder()); |
- if (!injectedScriptNative) return; |
+ InjectedScript* injectedScript = |
+ InjectedScript::fromInjectedScriptHost(info.GetIsolate(), info.Holder()); |
+ if (!injectedScript) return; |
v8::Local<v8::Context> context = info.GetIsolate()->GetCurrentContext(); |
v8::Local<v8::String> v8groupName = |
info[1]->ToString(context).ToLocalChecked(); |
String16 groupName = toProtocolStringWithTypeCheck(v8groupName); |
- int id = injectedScriptNative->bind(info[0], groupName); |
+ int id = injectedScript->bindObject(info[0], groupName); |
info.GetReturnValue().Set(id); |
} |