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

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

Issue 2127713005: Purge AppListMenu, and the app list profile switcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20160707-Apps-RemoveSettings
Patch Set: Created 4 years, 5 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') | ui/app_list/views/search_box_view.h » ('j') | 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 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() {
« no previous file with comments | « ui/app_list/views/app_list_view.h ('k') | ui/app_list/views/search_box_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698