Commit 6e75defd authored by Satoshi Niwa's avatar Satoshi Niwa Committed by Commit Bot

Ensure setSearchQuery() performs a search for Drive as well

This is a follow-up CL for crrev.com/c/2408502
setSearchQuery() is only used when LaunchParam.searchQuery is filled
at this point.

Bug: 1126742
Test: browser_tests --gtest_filter="*FilesApp*SearchQueryLaunchParam" (Added by crrev.com/c/2434008)
Change-Id: Id1bcc834ac9367de24cb29bc30fc357b5ec20580
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2434070Reviewed-by: default avatarLuciano Pacheco <lucmult@chromium.org>
Commit-Queue: Satoshi Niwa <niwa@chromium.org>
Auto-Submit: Satoshi Niwa <niwa@chromium.org>
Cr-Commit-Position: refs/heads/master@{#811542}
parent 3d2740b1
......@@ -95,6 +95,9 @@ class SearchController {
this.searchBox_.inputElement.focus();
this.searchBox_.inputElement.value = searchQuery;
this.onTextChange_();
if (this.isOnDrive_) {
this.onItemSelect_();
}
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment