| Index: ui/app_list/views/apps_grid_view.cc
|
| diff --git a/ui/app_list/views/apps_grid_view.cc b/ui/app_list/views/apps_grid_view.cc
|
| index 09d056f92b9eb42f6542fef1b915c55c84726fe8..d40540f45982515cd91a9a60d18461a938bf6f6e 100644
|
| --- a/ui/app_list/views/apps_grid_view.cc
|
| +++ b/ui/app_list/views/apps_grid_view.cc
|
| @@ -258,6 +258,8 @@ AppsGridView::AppsGridView(AppsGridViewDelegate* delegate,
|
| new views::WebView(start_page_contents->GetBrowserContext());
|
| start_page_view_->SetWebContents(start_page_contents);
|
| AddChildView(start_page_view_);
|
| + start_page_contents->GetWebUI()->CallJavascriptFunction(
|
| + "appList.startPage.onAppListShown");
|
| }
|
| }
|
|
|
| @@ -275,6 +277,11 @@ AppsGridView::~AppsGridView() {
|
|
|
| if (apps_)
|
| apps_->RemoveObserver(this);
|
| +
|
| + if (start_page_view_) {
|
| + start_page_view_->GetWebContents()->GetWebUI()->CallJavascriptFunction(
|
| + "appList.startPage.onAppListHidden");
|
| + }
|
| }
|
|
|
| void AppsGridView::SetLayout(int icon_size, int cols, int rows_per_page) {
|
|
|