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

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

Issue 2570253002: [MD History] Fix toolbar dates in grouped mode. (Closed)
Patch Set: rebase 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
« no previous file with comments | « chrome/browser/resources/history/externs.js ('k') | chrome/browser/resources/md_history/app.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/history/history.js
diff --git a/chrome/browser/resources/history/history.js b/chrome/browser/resources/history/history.js
index 20814f108a57e5e3b63642a33e5795a2760342bd..612c9a11486815cfc47cbba6832effd47939c68f 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));
};
/**
« no previous file with comments | « chrome/browser/resources/history/externs.js ('k') | chrome/browser/resources/md_history/app.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698