Chromium Code Reviews| 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..22c95d6d86578aaeb2836bea02d654f2826a6027 100644 |
| --- a/chrome/browser/resources/md_downloads/item.js |
| +++ b/chrome/browser/resources/md_downloads/item.js |
| @@ -78,6 +78,16 @@ cr.define('downloads', function() { |
| this.content = this.$.content; |
| }, |
| + /** |
| + * @param {string} text |
| + * @param {number} maxLength |
| + * @return {string} A string that's as long (or shorter) than |maxLength|. |
| + * @private |
| + */ |
| + chopString_: function(text, maxLength) { |
|
dpapad
2016/10/29 00:53:15
Nit (optional): Perhaps don't bother passing the m
Dan Beam
2016/10/29 01:00:52
Done.
|
| + return text.slice(0, maxLength); |
| + }, |
| + |
| /** @private */ |
| computeClass_: function() { |
| var classes = []; |