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

Unified Diff: third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js

Issue 2902273002: DevTools: convert linkifyURL params into options object (Closed)
Patch Set: rebase and ac Created 3 years, 7 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/console/ConsoleViewMessage.js
diff --git a/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js b/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js
index 9f25c5e7c80ac0f45434dcc4c46cf5c38f4c1e95..dfd39e7cdf62886c782248e6f7cd206f1d4ede15 100644
--- a/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js
+++ b/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js
@@ -285,9 +285,8 @@ Console.ConsoleViewMessage = class {
anchorElement = this._linkifyLocation(this._message.url, this._message.line, this._message.column);
}
} else if (this._message.url) {
- anchorElement = Components.Linkifier.linkifyURL(
- this._message.url, undefined, undefined, undefined, undefined, undefined,
- Console.ConsoleViewMessage.MaxLengthForLinks);
+ anchorElement =
+ Components.Linkifier.linkifyURL(this._message.url, {maxLength: Console.ConsoleViewMessage.MaxLengthForLinks});
}
// Append a space to prevent the anchor text from being glued to the console message when the user selects and copies the console messages.

Powered by Google App Engine
This is Rietveld 408576698