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

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

Issue 1754483002: [DevTools] Added setBlackboxPatterns method to protocol (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@provide-hash-for-anonymous-scripts
Patch Set: Created 4 years, 10 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/Script.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/Script.js b/third_party/WebKit/Source/devtools/front_end/sdk/Script.js
index 540c494c407083530ffa7dbf845b27852de2dcaa..6cc4452dc8c5c6e5e85340b81ff3027d95ac3e7a 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/Script.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/Script.js
@@ -298,18 +298,18 @@ WebInspector.Script.prototype = {
* @param {!Array<!DebuggerAgent.ScriptPosition>} positions
* @return {!Promise<boolean>}
*/
- setBlackboxedRanges: function(positions)
+ addBlackboxRanges: function(positions)
{
- return new Promise(setBlackboxedRanges.bind(this));
+ return new Promise(addBlackboxRanges.bind(this));
/**
* @param {function(?)} fulfill
* @param {function(*)} reject
* @this {WebInspector.Script}
*/
- function setBlackboxedRanges(fulfill, reject)
+ function addBlackboxRanges(fulfill, reject)
{
- this.target().debuggerAgent().setBlackboxedRanges(this.scriptId, positions, callback);
+ this.target().debuggerAgent().addBlackboxRanges(this.hash, positions, callback);
/**
* @param {?Protocol.Error} error
*/

Powered by Google App Engine
This is Rietveld 408576698