| Index: ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js
|
| diff --git a/ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js b/ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js
|
| index 7e3b8bf8f74478645a69f5905f40214dcc6460c6..b56c32974c1928bd89ac5110101c4336e434023f 100644
|
| --- a/ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js
|
| +++ b/ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js
|
| @@ -63,25 +63,14 @@ var CrSearchFieldBehavior = {
|
| this.delegate_ = delegate;
|
| },
|
|
|
| - /** @return {!Promise<boolean>} */
|
| showAndFocus: function() {
|
| this.showingSearch = true;
|
| - return this.focus_();
|
| + this.focus_();
|
| },
|
|
|
| - /**
|
| - * @return {!Promise<boolean>}
|
| - * @private
|
| - */
|
| + /** @private */
|
| focus_: function() {
|
| - return new Promise(function(resolve) {
|
| - this.async(function() {
|
| - if (this.showingSearch) {
|
| - this.$.searchInput.focus();
|
| - }
|
| - resolve(this.showingSearch);
|
| - });
|
| - }.bind(this));
|
| + this.$.searchInput.focus();
|
| },
|
|
|
| /** @private */
|
|
|