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

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

Issue 2783073002: [inspector] convert V8Console static methods into members (Closed)
Patch Set: rebased 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') | no next file with comments »
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..b4183a735a250f8d0493050df0401404626b51a1 100644
--- a/src/inspector/injected-script.cc
+++ b/src/inspector/injected-script.cc
@@ -406,9 +406,12 @@ Response InjectedScript::wrapEvaluateResult(
}
v8::Local<v8::Object> InjectedScript::commandLineAPI() {
- if (m_commandLineAPI.IsEmpty())
- m_commandLineAPI.Reset(m_context->isolate(),
- V8Console::createCommandLineAPI(m_context));
+ if (m_commandLineAPI.IsEmpty()) {
+ 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698