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

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

Issue 1963503002: MD WebUI: Add shared cr-toolbar element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review 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/history_toolbar.js
diff --git a/chrome/browser/resources/md_history/history_toolbar.js b/chrome/browser/resources/md_history/history_toolbar.js
index 356866d0a0b7b8224911f2aa1bc2a8c8bf15cfa1..fb7b5e65eeb5ca488c84678c3dab9e82e0a39305 100644
--- a/chrome/browser/resources/md_history/history_toolbar.js
+++ b/chrome/browser/resources/md_history/history_toolbar.js
@@ -88,9 +88,9 @@ Polymer({
return;
this.searchTerm = search;
- var searchField = /** @type {SearchField} */(this.$['search-input']);
- searchField.showAndFocus().then(function(showing) {
- if (showing) searchField.setValue(search);
+ var toolbar = /** @type {!CrToolbarElement} */(this.$['main-toolbar']);
+ toolbar.showAndFocus().then(function(showing) {
+ if (showing) toolbar.setValue(search);
});
},
@@ -104,7 +104,7 @@ Polymer({
attached: function() {
this.searchFieldDelegate_ = new ToolbarSearchFieldDelegate(this);
- /** @type {SearchField} */(this.$['search-input'])
+ /** @type {!CrToolbarElement} */(this.$['main-toolbar'])
.setDelegate(this.searchFieldDelegate_);
},

Powered by Google App Engine
This is Rietveld 408576698