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

Unified Diff: Source/devtools/front_end/sdk/InspectorBackend.js

Issue 316813003: DevTools: make Id the first parameter of protocol message. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | « Source/core/inspector/CodeGeneratorInspectorStrings.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/sdk/InspectorBackend.js
diff --git a/Source/devtools/front_end/sdk/InspectorBackend.js b/Source/devtools/front_end/sdk/InspectorBackend.js
index 3bdada91dcbfb48810d633cdded2be704aaa4069..3c9f9558c31285c8c8089e5e056a8562849a8122 100644
--- a/Source/devtools/front_end/sdk/InspectorBackend.js
+++ b/Source/devtools/front_end/sdk/InspectorBackend.js
@@ -408,15 +408,16 @@ InspectorBackendClass.Connection.prototype = {
_wrapCallbackAndSendMessageObject: function(domain, method, params, callback)
{
var messageObject = {};
+
+ var messageId = this.nextMessageId();
+ messageObject.id = messageId;
+
messageObject.method = method;
if (params)
messageObject.params = params;
var wrappedCallback = this._wrap(callback, domain, method);
- var messageId = this.nextMessageId();
- messageObject.id = messageId;
-
if (InspectorBackendClass.Options.dumpInspectorProtocolMessages)
this._dumpProtocolMessage("frontend: " + JSON.stringify(messageObject));
« no previous file with comments | « Source/core/inspector/CodeGeneratorInspectorStrings.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698