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

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

Issue 2783073002: [inspector] convert V8Console static methods into members (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | src/inspector/inspected-context.cc » ('j') | src/inspector/v8-console.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/injected-script.cc
diff --git a/src/inspector/injected-script.cc b/src/inspector/injected-script.cc
index 9d9c3270c2b26f779060861dd52ca74ab148c6a2..84142e0604c69b3c5ef75a5be0bc051235a23a6d 100644
--- a/src/inspector/injected-script.cc
+++ b/src/inspector/injected-script.cc
@@ -407,8 +407,10 @@ Response InjectedScript::wrapEvaluateResult(
v8::Local<v8::Object> InjectedScript::commandLineAPI() {
if (m_commandLineAPI.IsEmpty())
dgozman 2017/03/30 21:08:24 style: {} around next statement
kozy 2017/03/30 21:52:41 Done.
- m_commandLineAPI.Reset(m_context->isolate(),
- V8Console::createCommandLineAPI(m_context));
+ m_commandLineAPI.Reset(
+ m_context->isolate(),
+ m_context->inspector()->console()->createCommandLineAPI(
+ m_context->context()));
return m_commandLineAPI.Get(m_context->isolate());
}
« no previous file with comments | « no previous file | src/inspector/inspected-context.cc » ('j') | src/inspector/v8-console.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698