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

Unified Diff: content/renderer/devtools/devtools_agent.cc

Issue 1873533002: [DevTools] Force context creation when runtime is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more tests Created 4 years, 8 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 | « content/renderer/devtools/devtools_agent.h ('k') | content/renderer/render_view_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/devtools/devtools_agent.cc
diff --git a/content/renderer/devtools/devtools_agent.cc b/content/renderer/devtools/devtools_agent.cc
index 459a2b5197428888a6fc647067bcc0626cc38058..9d638d575897691711ab8bb375c9d7fa69bfb3b6 100644
--- a/content/renderer/devtools/devtools_agent.cc
+++ b/content/renderer/devtools/devtools_agent.cc
@@ -107,6 +107,11 @@ void DevToolsAgent::sendProtocolMessage(int session_id,
int call_id,
const blink::WebString& message,
const blink::WebString& state_cookie) {
+ if (!send_protocol_message_callback_for_test_.is_null()) {
+ send_protocol_message_callback_for_test_.Run(
+ session_id, call_id, message.utf8(), state_cookie.utf8());
+ return;
+ }
SendChunkedProtocolMessage(this, routing_id(), session_id, call_id,
message.utf8(), state_cookie.utf8());
}
« no previous file with comments | « content/renderer/devtools/devtools_agent.h ('k') | content/renderer/render_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698