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

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

Issue 272923002: Fix experimental app list contents switcher being positioned incorrectly on profile switch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ares_start_page
Patch Set: Created 6 years, 7 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 | « no previous file | 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_main_view.cc
diff --git a/ui/app_list/views/app_list_main_view.cc b/ui/app_list/views/app_list_main_view.cc
index fde4a329577cd9c410106f0782c0f9ad53b9a5dc..287c069593f21e9124883f78a27e62b7a2e6587d 100644
--- a/ui/app_list/views/app_list_main_view.cc
+++ b/ui/app_list/views/app_list_main_view.cc
@@ -37,6 +37,8 @@ const int kInnerPadding = 1;
// The maximum allowed time to wait for icon loading in milliseconds.
const int kMaxIconLoadingWaitTimeInMs = 50;
+const int kContentsViewIndex = 1;
+
} // namespace
////////////////////////////////////////////////////////////////////////////////
@@ -106,7 +108,7 @@ AppListMainView::AppListMainView(AppListViewDelegate* delegate,
void AppListMainView::AddContentsView() {
contents_view_ = new ContentsView(
this, pagination_model_, model_, delegate_);
- AddChildView(contents_view_);
+ AddChildViewAt(contents_view_, kContentsViewIndex);
search_box_view_->set_contents_view(contents_view_);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698