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

Unified Diff: ui/app_list/views/start_page_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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/start_page_view.cc
diff --git a/ui/app_list/views/start_page_view.cc b/ui/app_list/views/start_page_view.cc
index e1c0e2f40538521edc6a71f6b49ddc63a214d37c..164cee1a58fa59aba9eb2d0864fa07dcb83983e0 100644
--- a/ui/app_list/views/start_page_view.cc
+++ b/ui/app_list/views/start_page_view.cc
@@ -72,8 +72,9 @@ StartPageView::StartPageView(AppListMainView* app_list_main_view,
instant_container_->SetLayoutManager(new views::BoxLayout(
views::BoxLayout::kVertical, 0, kTopMargin, kInstantContainerSpacing));
- views::WebView* web_view =
- new views::WebView(start_page_web_contents->GetBrowserContext());
+ views::WebView* web_view = new views::WebView(
+ start_page_web_contents ? start_page_web_contents->GetBrowserContext()
+ : NULL);
web_view->SetPreferredSize(gfx::Size(kWebViewWidth, kWebViewHeight));
web_view->SetWebContents(start_page_web_contents);
« no previous file with comments | « ui/app_list/views/contents_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698