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

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

Issue 2656443004: MD History: Add routing for grouped history mode. (Closed)
Patch Set: Tweak 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/md_history/history_toolbar.js
diff --git a/chrome/browser/resources/md_history/history_toolbar.js b/chrome/browser/resources/md_history/history_toolbar.js
index 53c8438f21b8fed1927753a87f613930f2921bde..2ecf3e86b06ee2535db6be020917b373d883c765 100644
--- a/chrome/browser/resources/md_history/history_toolbar.js
+++ b/chrome/browser/resources/md_history/history_toolbar.js
@@ -143,6 +143,9 @@ Polymer({
/** @private */
getHistoryInterval_: function() {
var info = this.queryInfo;
+ if (!info)
+ return;
calamity 2017/01/27 03:47:34 When can this happen?
tsergeant 2017/01/30 02:13:14 It gets called when queryResult.info is set to nul
+
if (this.groupedRange == HistoryRange.WEEK)
return info.queryInterval;

Powered by Google App Engine
This is Rietveld 408576698