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

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: more !android 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 ad22d4576f51ae9c4f8e7db8ecd3f1033db58dde..4d369a3b423f0a66d1aa760427f3918cde85cb13 100644
--- a/chrome/browser/resources/md_history/history_item.js
+++ b/chrome/browser/resources/md_history/history_item.js
@@ -162,18 +162,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;
- }
});
/**
« no previous file with comments | « chrome/browser/resources/md_history/history_item.html ('k') | chrome/browser/ui/find_bar/find_bar_host_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698