Index: ui/app_list/views/search_box_view.cc |
diff --git a/ui/app_list/views/search_box_view.cc b/ui/app_list/views/search_box_view.cc |
index 599f298e8c5f24eec2bbe104450765527e879a72..81cdb9bc0976b0f82ca6dbdc3cb56c6f47df4be0 100644 |
--- a/ui/app_list/views/search_box_view.cc |
+++ b/ui/app_list/views/search_box_view.cc |
@@ -345,11 +345,8 @@ void SearchBoxView::ContentsChanged(views::Textfield* sender, |
UpdateModel(); |
view_delegate_->AutoLaunchCanceled(); |
NotifyQueryChanged(); |
- |
- if (IsFullscreenAppListEnabled() && !app_list_view_->is_fullscreen()) { |
- // If the app list is in the peeking state, switch it to fullscreen. |
- app_list_view_->SetState(AppListView::FULLSCREEN); |
- } |
+ if (IsFullscreenAppListEnabled()) |
+ app_list_view_->SetStateFromSearchBoxView(search_box_->text().empty()); |
} |
bool SearchBoxView::HandleKeyEvent(views::Textfield* sender, |