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

Unified Diff: chrome/browser/debugger/devtools_http_protocol_handler.cc

Issue 3052019: DevTools: restore remote rebugging after upstream breakage. (Closed)
Patch Set: Created 10 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/debugger/devtools_http_protocol_handler.cc
diff --git a/chrome/browser/debugger/devtools_http_protocol_handler.cc b/chrome/browser/debugger/devtools_http_protocol_handler.cc
index 58f2d94e321d97c84f71b92ac149ecd19fd82e88..28efa9c068194af6bfa327e8df0d774acc730523 100644
--- a/chrome/browser/debugger/devtools_http_protocol_handler.cc
+++ b/chrome/browser/debugger/devtools_http_protocol_handler.cc
@@ -246,21 +246,15 @@ void DevToolsHttpProtocolHandler::OnWebSocketRequestUI(
void DevToolsHttpProtocolHandler::OnWebSocketMessageUI(
HttpListenSocket* socket,
- const std::string& d) {
+ const std::string& data) {
SocketToClientHostMap::iterator it = socket_to_client_host_ui_.find(socket);
if (it == socket_to_client_host_ui_.end())
return;
- std::string data = d;
// TODO(pfeldman): Replace with proper parsing / dispatching.
DevToolsMessageData message_data;
message_data.class_name = "ToolsAgent";
message_data.method_name = "dispatchOnInspectorController";
-
- size_t pos = data.find(" ");
- message_data.arguments.push_back(data.substr(0, pos));
- data = data.substr(pos + 1);
-
message_data.arguments.push_back(data);
DevToolsManager* manager = DevToolsManager::GetInstance();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698