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

Unified Diff: chrome/browser/resources/md_downloads/item.js

Issue 2455393004: MD Downloads: reduce the size of the ellided, displayed download URL (Closed)
Patch Set: she's choppin, she's choppin, brocoooooooollliiiiiii 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: chrome/browser/resources/md_downloads/item.js
diff --git a/chrome/browser/resources/md_downloads/item.js b/chrome/browser/resources/md_downloads/item.js
index 3bc1ef68599e13175d4180c897b25254e52ccad4..d87845d1a0ab9a4dd404c5ac67ffba502db0f248 100644
--- a/chrome/browser/resources/md_downloads/item.js
+++ b/chrome/browser/resources/md_downloads/item.js
@@ -78,6 +78,15 @@ cr.define('downloads', function() {
this.content = this.$.content;
},
+ /**
+ * @param {string} url
+ * @return {string} A reasonably long URL.
+ * @private
+ */
+ chopUrl_: function(url) {
+ return url.slice(0, 300);
+ },
+
/** @private */
computeClass_: function() {
var classes = [];
« no previous file with comments | « chrome/browser/resources/md_downloads/item.html ('k') | chrome/browser/resources/md_downloads/vulcanized.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698