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

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

Issue 2590093002: MD History: Move queryState to be managed by history-router (Closed)
Patch Set: Fix test 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/app.js
diff --git a/chrome/browser/resources/md_history/app.js b/chrome/browser/resources/md_history/app.js
index 846643fa50a94bd3627ec1acf105b5617048d10b..3fadfbbb7bd4f812316e65b20c2452d02b430afc 100644
--- a/chrome/browser/resources/md_history/app.js
+++ b/chrome/browser/resources/md_history/app.js
@@ -39,30 +39,6 @@ Polymer({
reflectToAttribute: true,
},
- /** @type {!QueryState} */
- queryState_: {
- type: Object,
- value: function() {
- return {
- // Whether the most recent query was incremental.
- incremental: false,
- // A query is initiated by page load.
- querying: true,
- queryingDisabled: false,
- _range: HistoryRange.ALL_TIME,
- searchTerm: '',
- groupedOffset: 0,
-
- set range(val) {
- this._range = Number(val);
- },
- get range() {
- return this._range;
- },
- };
- }
- },
-
/** @type {!QueryResult} */
queryResult_: {
type: Object,
@@ -95,6 +71,9 @@ Polymer({
},
},
+ /** @type {!QueryState} */
+ queryState_: Object,
+
// True if the window is narrow enough for the page to have a drawer.
hasDrawer_: Boolean,

Powered by Google App Engine
This is Rietveld 408576698