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

Unified Diff: ui/file_manager/file_manager/foreground/js/search_controller.js

Issue 2823793002: Compile search_box in gyp v2. (Closed)
Patch Set: . Created 3 years, 8 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: ui/file_manager/file_manager/foreground/js/search_controller.js
diff --git a/ui/file_manager/file_manager/foreground/js/search_controller.js b/ui/file_manager/file_manager/foreground/js/search_controller.js
index 0552d469a206801659ba077d2dd70f2588aa41f1..78b45162cde5c4b0b637194025ec9aacc1b5bf04 100644
--- a/ui/file_manager/file_manager/foreground/js/search_controller.js
+++ b/ui/file_manager/file_manager/foreground/js/search_controller.js
@@ -124,7 +124,8 @@ SearchController.prototype.requestAutocompleteSuggestions_ = function() {
}
// Add header item.
- var headerItem = {isHeaderItem: true, searchQuery: searchString};
+ var headerItem = /** @type {SearchItem} */ (
+ {isHeaderItem: true, searchQuery: searchString});
if (!this.searchBox_.autocompleteList.dataModel ||
this.searchBox_.autocompleteList.dataModel.length == 0) {
this.searchBox_.autocompleteList.suggestions = [headerItem];

Powered by Google App Engine
This is Rietveld 408576698