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

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

Issue 1965913003: [MD History] Add grouped history toolbar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cbd_move
Patch Set: address comments Created 4 years, 7 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/app.js
diff --git a/chrome/browser/resources/md_history/app.js b/chrome/browser/resources/md_history/app.js
index 29ebdf37bc8108548308fcd88bf17ec144f0f146..14cac1a05eceb66a90a1c15b9212573ae821555c 100644
--- a/chrome/browser/resources/md_history/app.js
+++ b/chrome/browser/resources/md_history/app.js
@@ -21,6 +21,10 @@ Polymer({
'search-changed': 'searchChanged',
},
+ ready: function() {
+ this.$.toolbar.isGroupedMode = loadTimeData.getBoolean('groupByDomain');
+ },
+
/**
* Listens for history-item being selected or deselected (through checkbox)
* and changes the view of the top toolbar.
@@ -84,6 +88,10 @@ Polymer({
/** @type {HistoryToolbarElement} */(this.$.toolbar).searching = false;
if (info.finished)
list.disableResultLoading();
+
+ var toolbar = /** @type {HistoryToolbarElement} */(this.$.toolbar);
+ toolbar.queryStartTime = info.queryStartTime;
+ toolbar.queryEndTime = info.queryEndTime;
},
/**
« no previous file with comments | « chrome/browser/resources/md_history/app.html ('k') | chrome/browser/resources/md_history/compiled_resources2.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698