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

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

Issue 186483004: Add a skeleton Start Page to the experimental app list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ares_change_experimental_animation
Patch Set: rework Created 6 years, 9 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/apps_grid_view.cc
diff --git a/ui/app_list/views/apps_grid_view.cc b/ui/app_list/views/apps_grid_view.cc
index f5c1adc0998b94f19d04ff2be3627a77b5ea0b59..6130af8f733ef4cd30fcc09bc57a2b36bfc56863 100644
--- a/ui/app_list/views/apps_grid_view.cc
+++ b/ui/app_list/views/apps_grid_view.cc
@@ -340,7 +340,7 @@ AppsGridView::AppsGridView(AppsGridViewDelegate* delegate,
pagination_model_->AddObserver(this);
AddChildView(page_switcher_view_);
- if (start_page_contents) {
+ if (start_page_contents && app_list::switches::IsStartPageWebUIEnabled()) {
start_page_view_ =
new views::WebView(start_page_contents->GetBrowserContext());
start_page_view_->SetWebContents(start_page_contents);

Powered by Google App Engine
This is Rietveld 408576698