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

Unified Diff: chrome/browser/resources/md_history/history_item.js

Issue 2318643003: MD History: truncate title to 300 chars in C++ instead of JS (Closed)
Patch Set: !android in tests as well Created 4 years, 3 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_history/history_item.js
diff --git a/chrome/browser/resources/md_history/history_item.js b/chrome/browser/resources/md_history/history_item.js
index 211842c2f3632d1592559fe9a710ad1a7c912c9b..c0802cd05a58f0291907b0b800ad998bc23e4cbb 100644
--- a/chrome/browser/resources/md_history/history_item.js
+++ b/chrome/browser/resources/md_history/history_item.js
@@ -151,18 +151,6 @@ cr.define('md_history', function() {
return loadTimeData.getStringF('foundSearchResults', numberOfItems,
loadTimeData.getString(resultId), search);
},
-
- /**
- * Crop long item titles to reduce their effect on layout performance. See
- * crbug.com/621347.
- * @param {string} title
- * @return {string}
- */
- cropItemTitle_: function(title) {
- return (title.length > TITLE_MAX_LENGTH) ?
- title.substr(0, TITLE_MAX_LENGTH) :
- title;
- }
});
/**

Powered by Google App Engine
This is Rietveld 408576698