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 87e429882c8cf417634a1c9be877a974b0359504..c1dbca9c047c9334c8e03128ff995c04e9a9f2ff 100644 |
--- a/ui/app_list/views/app_list_view.cc |
+++ b/ui/app_list/views/app_list_view.cc |
@@ -212,13 +212,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); |
@@ -384,15 +382,6 @@ void AppListView::Prerender() { |
app_list_main_view_->Prerender(); |
} |
-void AppListView::OnProfilesChanged() { |
- app_list_main_view_->search_box_view()->InvalidateMenu(); |
-} |
- |
-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(); |
@@ -469,8 +458,6 @@ void AppListView::InitContents(gfx::NativeView parent, int initial_apps_page) { |
speech_view_->layer()->SetOpacity(0.0f); |
AddChildView(speech_view_); |
} |
- |
- OnProfilesChanged(); |
} |
void AppListView::InitChildWidgets() { |