| Index: ui/app_list/views/app_list_view.cc
|
| diff --git a/ui/app_list/views/app_list_view.cc b/ui/app_list/views/app_list_view.cc
|
| index 4bfdb605f09931832edf28338527fe7791f0d852..beffb2960eec8e47154c27ffff64942358b4cc6b 100644
|
| --- a/ui/app_list/views/app_list_view.cc
|
| +++ b/ui/app_list/views/app_list_view.cc
|
| @@ -202,13 +202,11 @@ AppListView::AppListView(AppListViewDelegate* delegate)
|
| animation_observer_(new HideViewAnimationObserver()) {
|
| CHECK(delegate);
|
|
|
| - delegate_->AddObserver(this);
|
| delegate_->GetSpeechUI()->AddObserver(this);
|
| }
|
|
|
| AppListView::~AppListView() {
|
| delegate_->GetSpeechUI()->RemoveObserver(this);
|
| - delegate_->RemoveObserver(this);
|
| animation_observer_.reset();
|
| // Remove child views first to ensure no remaining dependencies on delegate_.
|
| RemoveAllChildViews(true);
|
| @@ -348,11 +346,6 @@ bool AppListView::ShouldDescendIntoChildForEventHandling(
|
| ShouldDescendIntoChildForEventHandling(child, location);
|
| }
|
|
|
| -void AppListView::OnShutdown() {
|
| - // Nothing to do on views - the widget will soon be closed, which will tear
|
| - // everything down.
|
| -}
|
| -
|
| void AppListView::SetProfileByPath(const base::FilePath& profile_path) {
|
| delegate_->SetProfileByPath(profile_path);
|
| app_list_main_view_->ModelChanged();
|
|
|