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

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

Issue 589333002: Remove StartPageView from being a AppListViewDelegateObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20140923-AppList-OnShutdown
Patch Set: fix Created 6 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/start_page_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/start_page_view.cc
diff --git a/ui/app_list/views/start_page_view.cc b/ui/app_list/views/start_page_view.cc
index 0f444591a17f467da95fc4ad222710d1c007887b..23d2f643aee1956381bd4c8c36e4b68ae000a517 100644
--- a/ui/app_list/views/start_page_view.cc
+++ b/ui/app_list/views/start_page_view.cc
@@ -89,11 +89,9 @@ StartPageView::StartPageView(AppListMainView* app_list_main_view,
AddChildView(tiles_container_);
SetModel(view_delegate_->GetModel());
- view_delegate_->AddObserver(this);
}
StartPageView::~StartPageView() {
- view_delegate_->RemoveObserver(this);
if (search_results_model_)
search_results_model_->RemoveObserver(this);
}
@@ -244,10 +242,6 @@ void StartPageView::QueryChanged(SearchBoxView* sender) {
sender->search_box()->SetText(base::string16());
}
-void StartPageView::OnProfilesChanged() {
- SetModel(view_delegate_->GetModel());
-}
-
void StartPageView::ListItemsAdded(size_t start, size_t count) {
ScheduleUpdate();
}
« no previous file with comments | « ui/app_list/views/start_page_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698