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

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: rebase 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 | « ui/app_list/views/contents_view.h ('k') | ui/app_list/views/start_page_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c07c867abb683828f0816b24cf25b4211f4b8a88..d52178022f60c74406c3b7839164771cbd32757d 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)) {
@@ -79,10 +80,10 @@ ContentsView::ContentsView(AppListMainView* app_list_main_view,
if (app_list::switches::IsExperimentalAppListEnabled()) {
content::WebContents* start_page_contents =
view_delegate->GetStartPageContents();
- StartPageView* start_page_view =
+ start_page_view_ =
new StartPageView(app_list_main_view, start_page_contents);
- AddChildView(start_page_view);
- view_model_->Add(start_page_view, kIndexStartPage);
+ AddChildView(start_page_view_);
+ view_model_->Add(start_page_view_, kIndexStartPage);
}
GetSearchResultListView(view_model_.get())->SetResults(model->results());
« no previous file with comments | « ui/app_list/views/contents_view.h ('k') | ui/app_list/views/start_page_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698