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

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

Issue 2237703004: [MD History] Focus the search bar on load. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix drawer test Created 4 years, 4 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/list_container.js
diff --git a/chrome/browser/resources/md_history/list_container.js b/chrome/browser/resources/md_history/list_container.js
index 0c79ae11e590ad084ac77391bf1278a88820d4a7..0fa961197c3232303ed362a9e010939742dc738d 100644
--- a/chrome/browser/resources/md_history/list_container.js
+++ b/chrome/browser/resources/md_history/list_container.js
@@ -93,7 +93,8 @@ Polymer({
},
unselectAllItems: function(count) {
- this.getSelectedList_().unselectAllItems(count);
+ if (this.getSelectedList_())
+ this.getSelectedList_().unselectAllItems(count);
},
/**

Powered by Google App Engine
This is Rietveld 408576698