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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/PaintProfiler.js

Issue 2453673002: [DevTools] Scope common protocol infrastructure under Protocol namespace in a separate module. (Closed)
Patch Set: Created 4 years, 2 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
Index: third_party/WebKit/Source/devtools/front_end/sdk/PaintProfiler.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/PaintProfiler.js b/third_party/WebKit/Source/devtools/front_end/sdk/PaintProfiler.js
index c5c61e0e9f51ac39b30440da74ea88430f966985..e61242817965536f6cbc4b1912be8754b8750152 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/PaintProfiler.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/PaintProfiler.js
@@ -91,7 +91,7 @@ WebInspector.PaintProfilerSnapshot.prototype = {
*/
requestImage: function(firstStep, lastStep, scale, callback)
{
- var wrappedCallback = InspectorBackend.wrapClientCallback(callback, "LayerTreeAgent.replaySnapshot(): ");
+ var wrappedCallback = Protocol.wrapClientCallback(callback, "LayerTreeAgent.replaySnapshot(): ");
this._target.layerTreeAgent().replaySnapshot(this._id, firstStep || undefined, lastStep || undefined, scale || 1.0, wrappedCallback);
},
@@ -101,7 +101,7 @@ WebInspector.PaintProfilerSnapshot.prototype = {
*/
profile: function(clipRect, callback)
{
- var wrappedCallback = InspectorBackend.wrapClientCallback(callback, "LayerTreeAgent.profileSnapshot(): ");
+ var wrappedCallback = Protocol.wrapClientCallback(callback, "LayerTreeAgent.profileSnapshot(): ");
this._target.layerTreeAgent().profileSnapshot(this._id, 5, 1, clipRect || undefined, wrappedCallback);
},

Powered by Google App Engine
This is Rietveld 408576698