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

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

Issue 1974713002: [MD History] Unify query state in history-app. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@secondary_toolbar
Patch Set: closure 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/history_toolbar.js
diff --git a/chrome/browser/resources/md_history/history_toolbar.js b/chrome/browser/resources/md_history/history_toolbar.js
index 78ac050546a403e1b9474f862e17cb9d6e901ed8..1cc831fe1fb52080710101d08266fca27c19c0b4 100644
--- a/chrome/browser/resources/md_history/history_toolbar.js
+++ b/chrome/browser/resources/md_history/history_toolbar.js
@@ -40,7 +40,7 @@ Polymer({
// as the user types.
searchTerm: {
type: String,
- value: ''
+ notify: true,
},
// True if waiting on the search backend.
@@ -93,6 +93,7 @@ Polymer({
setSearchTerm: function(search) {
if (this.searchTerm == search)
return;
+
this.searchTerm = search;
var searchField = /** @type {SearchField} */(this.$['search-input']);
searchField.showAndFocus().then(function(showing) {
@@ -104,10 +105,8 @@ Polymer({
* If the search term has changed reload for the new search.
*/
onSearch: function(searchTerm) {
- if (searchTerm != this.searchTerm) {
+ if (searchTerm != this.searchTerm)
this.searchTerm = searchTerm;
- this.fire('search-changed', {search: searchTerm});
- }
},
attached: function() {

Powered by Google App Engine
This is Rietveld 408576698