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

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

Issue 2057353002: WebUI: cr-search-field, do not call delegate if search query did not change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comments. Created 4 years, 6 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
« no previous file with comments | « no previous file | chrome/test/data/webui/cr_elements/cr_toolbar_search_field_tests.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6045c62d8b9b9ff4a9f36fdf4a604e73a4d76b97..2e514abada67910df4a93420b6aaef78ea092b73 100644
--- a/chrome/browser/resources/md_history/history_toolbar.js
+++ b/chrome/browser/resources/md_history/history_toolbar.js
@@ -97,11 +97,10 @@ Polymer({
},
/**
- * If the search term has changed reload for the new search.
+ * @param {string} searchTerm
*/
onSearch: function(searchTerm) {
- if (searchTerm != this.searchTerm)
- this.searchTerm = searchTerm;
+ this.searchTerm = searchTerm;
},
attached: function() {
« no previous file with comments | « no previous file | chrome/test/data/webui/cr_elements/cr_toolbar_search_field_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698