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

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

Issue 683703002: Notify launcher page with onTransitionChanged event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@launcher_page_api_show_state_notify
Patch Set: nullptr like it's 1999 Created 6 years, 2 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
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 987631a0351373cfe62e53116aa250a1d8c27ae2..129a8a786b3b276f8b5243170b8d4c9a121c5d38 100644
--- a/ui/app_list/views/app_list_view.cc
+++ b/ui/app_list/views/app_list_view.cc
@@ -291,6 +291,9 @@ void AppListView::OnShutdown() {
void AppListView::SetProfileByPath(const base::FilePath& profile_path) {
delegate_->SetProfileByPath(profile_path);
app_list_main_view_->ModelChanged();
+
+ if (delegate_)
+ delegate_->ViewReinitializedForProfileChange();
}
void AppListView::AddObserver(AppListViewObserver* observer) {
@@ -421,9 +424,6 @@ void AppListView::InitAsBubbleInternal(gfx::NativeView parent,
kOverlayCornerRadius - (SupportsShadow() ? 0 : 1)));
AddChildView(overlay_view_);
Matt Giuca 2014/11/03 00:57:42 Why did this go away?
calamity 2014/11/06 02:36:32 It's back. From outer space.
- if (delegate_)
- delegate_->ViewInitialized();
-
UMA_HISTOGRAM_TIMES("Apps.AppListCreationTime",
base::Time::Now() - start_time);
}

Powered by Google App Engine
This is Rietveld 408576698