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

Unified Diff: chrome/browser/resources/history/history.js

Issue 2570253002: [MD History] Fix toolbar dates in grouped mode. (Closed)
Patch Set: use date interval format Created 3 years, 11 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/history/history.js
diff --git a/chrome/browser/resources/history/history.js b/chrome/browser/resources/history/history.js
index 11c84fd9f8f3f31c053f679c0b84b7a830080dad..1e2d0c79ea7610d8378548ec9244ad439342926d 100644
--- a/chrome/browser/resources/history/history.js
+++ b/chrome/browser/resources/history/history.js
@@ -631,8 +631,7 @@ HistoryModel.prototype.addResults = function(info, results) {
$('loading-spinner').hidden = true;
this.inFlight_ = false;
this.isQueryFinished_ = info.finished;
- this.queryStartTime = info.queryStartTime;
- this.queryEndTime = info.queryEndTime;
+ this.queryInterval = info.queryInterval;
var lastVisit = this.visits_.slice(-1)[0];
var lastDay = lastVisit ? lastVisit.dateRelativeDay : null;
@@ -1579,10 +1578,8 @@ HistoryView.prototype.addTimeframeInterval_ = function(resultsFragment) {
createElementWithClassName('h2', 'timeframe'));
// TODO(sergiu): Figure the best way to show this for the first day of
// the month.
- timeFrame.appendChild(document.createTextNode(loadTimeData.getStringF(
- 'historyInterval',
- this.model_.queryStartTime,
- this.model_.queryEndTime)));
+ timeFrame.appendChild(
+ document.createTextNode(this.model_.queryInterval));
};
/**

Powered by Google App Engine
This is Rietveld 408576698