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 d9e85ec15b600f13cc9f29b66a309fdf775c540a..8857b43e0c3da321b2d0283fc4cd1e81b0a084c0 100644 |
--- a/chrome/browser/resources/md_history/history_toolbar.js |
+++ b/chrome/browser/resources/md_history/history_toolbar.js |
@@ -102,6 +102,12 @@ Polymer({ |
.showAndFocus(); |
}, |
Dan Beam
2016/07/15 03:07:41
nit: /** return {boolean} */
lshang
2016/07/15 05:02:09
Since we need to check both the search field is sh
|
+ showingSearchField: function() { |
+ return /** @type {!CrToolbarElement} */(this.$['main-toolbar']) |
+ .getSearchField() |
+ .showingSearchStatus(); |
+ }, |
+ |
/** |
* If the user is a supervised user the delete button is not shown. |
* @private |