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

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

Issue 2112803002: MD History: Trim long item titles to reduce effect on performance (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test Created 4 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/resources/md_history/history_item.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_history/constants.js
diff --git a/chrome/browser/resources/md_history/constants.js b/chrome/browser/resources/md_history/constants.js
index 4dd681041832f0e18a5788759cc0811a0fcb43cf..ed4010737ecea9e07544907491cbe26a5b921530 100644
--- a/chrome/browser/resources/md_history/constants.js
+++ b/chrome/browser/resources/md_history/constants.js
@@ -13,6 +13,14 @@
var BROWSING_GAP_TIME = 15 * 60 * 1000;
/**
+ * Maximum length of a history item title. Anything longer than this will be
+ * cropped to fit within this limit. This value is large enough that it will not
+ * be noticeable in a 960px wide history-item.
+ * @const
+ */
+var TITLE_MAX_LENGTH = 300;
+
+/**
* @enum {number}
*/
var HistoryRange = {
« no previous file with comments | « no previous file | chrome/browser/resources/md_history/history_item.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698