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

Unified Diff: src/inspector/v8-injected-script-host.cc

Issue 2921623006: [inspector] Inline InjectedScriptNative into InjectedScript (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « src/inspector/inspector.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « src/inspector/inspector.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698