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

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: Style 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
« no previous file with comments | « chrome/browser/resources/md_history/history_toolbar.html ('k') | chrome/browser/ui/webui/md_history_ui.cc » ('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 356866d0a0b7b8224911f2aa1bc2a8c8bf15cfa1..e9748e5159d790b1ea491be232bd31832810410a 100644
--- a/chrome/browser/resources/md_history/history_toolbar.js
+++ b/chrome/browser/resources/md_history/history_toolbar.js
@@ -88,7 +88,8 @@ Polymer({
return;
this.searchTerm = search;
- var searchField = /** @type {SearchField} */(this.$['search-input']);
+ var searchField = /** @type {!CrToolbarElement} */(this.$['main-toolbar'])
+ .getSearchField();
searchField.showAndFocus().then(function(showing) {
if (showing) searchField.setValue(search);
});
@@ -104,7 +105,7 @@ Polymer({
attached: function() {
this.searchFieldDelegate_ = new ToolbarSearchFieldDelegate(this);
- /** @type {SearchField} */(this.$['search-input'])
+ /** @type {!CrToolbarElement} */(this.$['main-toolbar']).getSearchField()
.setDelegate(this.searchFieldDelegate_);
},
« no previous file with comments | « chrome/browser/resources/md_history/history_toolbar.html ('k') | chrome/browser/ui/webui/md_history_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698