Commit a10146dc authored by Jenny Zhang's avatar Jenny Zhang Committed by Commit Bot

Deactivate and clear search box when closing launcher.

Bug: 1004922
Change-Id: I0662c2010e0914f46be0a9f1ae4ed9e711adc3db
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1810842Reviewed-by: default avatarAlex Newcomer <newcomer@chromium.org>
Commit-Queue: Jenny Zhang <jennyz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#697797}
parent b2e94e70
......@@ -1230,8 +1230,9 @@ void AppListControllerImpl::RemoveObserver(
void AppListControllerImpl::NotifyAppListVisibilityChanged(bool visible,
int64_t display_id) {
if (!visible) {
presenter_.GetView()->search_box_view()->SetSearchBoxActive(false,
ui::ET_UNKNOWN);
presenter_.GetView()
->search_box_view()
->ClearSearchAndDeactivateSearchBox();
}
// Notify chrome of visibility changes.
......
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