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

Unified Diff: chrome/browser/devtools/devtools_ui_bindings.cc

Issue 444633003: Revert of [DevTools] Move DispatchOnDevToolsFrontend to embedder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | content/browser/devtools/devtools_frontend_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/devtools/devtools_ui_bindings.cc
diff --git a/chrome/browser/devtools/devtools_ui_bindings.cc b/chrome/browser/devtools/devtools_ui_bindings.cc
index 90a43f292e656152b3a9f5e086e3b9889e963769..e87b70a0f5533e5693e52b41b5467d94cfb46224 100644
--- a/chrome/browser/devtools/devtools_ui_bindings.cc
+++ b/chrome/browser/devtools/devtools_ui_bindings.cc
@@ -409,9 +409,8 @@
// content::DevToolsClientHost implementation ---------------------------------
void DevToolsUIBindings::DispatchOnInspectorFrontend(
const std::string& message) {
- base::StringValue message_value(message);
- CallClientFunction("InspectorFrontendAPI.dispatchMessage",
- &message_value, NULL, NULL);
+ if (frontend_host_)
+ frontend_host_->DispatchOnDevToolsFrontend(message);
}
void DevToolsUIBindings::InspectedContentsClosing() {
@@ -797,9 +796,8 @@
}
}
}
-
- base::string16 javascript = base::UTF8ToUTF16(
- function_name + "(" + params + ");");
+ base::string16 javascript =
+ base::UTF8ToUTF16(function_name + "(" + params + ");");
web_contents_->GetMainFrame()->ExecuteJavaScript(javascript);
}
« no previous file with comments | « no previous file | content/browser/devtools/devtools_frontend_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698