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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.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/DebuggerModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
index 98b2d78418741c7e2a719acad3ae717150c86fd7..7daad6ae2317d1487580445742964cfa27c8176d 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
@@ -637,6 +637,34 @@ WebInspector.DebuggerModel.prototype = {
},
/**
+ * @param {!Array<!DebuggerAgent.BlackboxPattern>} patterns
+ * @return {!Promise<boolean>}
+ */
+ editBlackboxPatterns: function(patterns)
+ {
+ return new Promise(editBlackboxPatterns.bind(this));
+
+ /**
+ * @param {function(?)} fulfill
+ * @param {function(*)} reject
+ * @this {WebInspector.DebuggerModel}
+ */
+ function editBlackboxPatterns(fulfill, reject)
+ {
+ this._agent.editBlackboxPatterns(patterns, callback);
+ /**
+ * @param {?Protocol.Error} error
+ */
+ function callback(error)
+ {
+ if (error)
+ console.error(error);
+ fulfill(!error);
+ }
+ }
+ },
+
+ /**
* @param {!WebInspector.Script} script
* @param {number} lineNumber
* @param {number} columnNumber

Powered by Google App Engine
This is Rietveld 408576698