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

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

Issue 2643533003: MD History: Use one-way binding for history query state. (Closed)
Patch Set: Remove wrapper function 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/list_container.js
diff --git a/chrome/browser/resources/md_history/list_container.js b/chrome/browser/resources/md_history/list_container.js
index b4a28e973e793ff140f107d87e792f0604580bfa..4f309477d2e9e2c062008ebbf35419667dac5711 100644
--- a/chrome/browser/resources/md_history/list_container.js
+++ b/chrome/browser/resources/md_history/list_container.js
@@ -6,16 +6,10 @@ Polymer({
is: 'history-list-container',
properties: {
- /** @type {HistoryRange} */
- groupedRange: {
- type: Number,
- observer: 'groupedRangeChanged_',
- },
-
// The path of the currently selected page.
selectedPage_: {
type: String,
- computed: 'computeSelectedPage_(groupedRange)',
+ computed: 'computeSelectedPage_(queryState.range)',
},
// Whether domain-grouped history is enabled.
@@ -207,7 +201,7 @@ Polymer({
'EntryMenuShowMoreFromSite');
var menu = assert(this.$.sharedMenu.getIfExists());
- this.set('queryState.searchTerm', this.actionMenuModel_.item.domain);
+ this.fire('change-query', {search: this.actionMenuModel_.item.domain});
this.actionMenuModel_ = null;
this.closeMenu_();
},
« no previous file with comments | « chrome/browser/resources/md_history/list_container.html ('k') | chrome/browser/resources/md_history/query_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698