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

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

Issue 291653003: Add a unit test for the experimental app list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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
Index: ui/app_list/views/contents_view.cc
diff --git a/ui/app_list/views/contents_view.cc b/ui/app_list/views/contents_view.cc
index 8d56b072a1304503e3874ef12246aea080200fae..c0a1e4bd32deaf138cfcd8c3a23f79e0d9b0299e 100644
--- a/ui/app_list/views/contents_view.cc
+++ b/ui/app_list/views/contents_view.cc
@@ -58,6 +58,7 @@ ContentsView::ContentsView(AppListMainView* app_list_main_view,
AppListViewDelegate* view_delegate)
: show_state_(SHOW_APPS),
pagination_model_(pagination_model),
+ start_page_view_(NULL),
app_list_main_view_(app_list_main_view),
view_model_(new views::ViewModel),
bounds_animator_(new views::BoundsAnimator(this)) {
@@ -77,10 +78,9 @@ ContentsView::ContentsView(AppListMainView* app_list_main_view,
view_model_->Add(search_results_view, kIndexSearchResults);
if (app_list::switches::IsExperimentalAppListEnabled()) {
- StartPageView* start_page_view =
- new StartPageView(app_list_main_view, view_delegate);
- AddChildView(start_page_view);
- view_model_->Add(start_page_view, kIndexStartPage);
+ start_page_view_ = new StartPageView(app_list_main_view, view_delegate);
+ AddChildView(start_page_view_);
+ view_model_->Add(start_page_view_, kIndexStartPage);
}
GetSearchResultListView(view_model_.get())->SetResults(model->results());

Powered by Google App Engine
This is Rietveld 408576698