Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(486)

Unified Diff: ui/app_list/views/app_list_view.cc

Issue 2350623002: Deleted AppListViewDelegateObserver class (was unused). (Closed)
Patch Set: More cleanup. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/app_list/views/app_list_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « ui/app_list/views/app_list_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698