| Index: chrome/browser/ui/app_list/app_list_view_delegate.cc
|
| diff --git a/chrome/browser/ui/app_list/app_list_view_delegate.cc b/chrome/browser/ui/app_list/app_list_view_delegate.cc
|
| index 6995f58468643b0bed4e5c3b74be6c3e24b52d3e..0c1d966651d7585c4fd06ed6dde7523a71e51b80 100644
|
| --- a/chrome/browser/ui/app_list/app_list_view_delegate.cc
|
| +++ b/chrome/browser/ui/app_list/app_list_view_delegate.cc
|
| @@ -89,6 +89,10 @@ AppListViewDelegate::AppListViewDelegate(
|
| }
|
|
|
| AppListViewDelegate::~AppListViewDelegate() {
|
| + app_list::StartPageService* service =
|
| + app_list::StartPageService::Get(profile_);
|
| + if (service)
|
| + service->SetAppListModel(NULL);
|
| g_browser_process->
|
| profile_manager()->GetProfileInfoCache().RemoveObserver(this);
|
| }
|
| @@ -159,6 +163,11 @@ void AppListViewDelegate::InitModel(app_list::AppListModel* model) {
|
| model,
|
| controller_.get()));
|
|
|
| + app_list::StartPageService* service =
|
| + app_list::StartPageService::Get(profile_);
|
| + if (service)
|
| + service->SetAppListModel(model_);
|
| +
|
| // Initialize the profile information in the app list menu.
|
| OnProfileChanged();
|
| }
|
|
|