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

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: 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/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 c9737087c781913ed284049b5298f8c516ac5da6..bfdcab7aeb53342bef9c2da5d6bf54b995de8c48 100644
--- a/ui/app_list/views/start_page_view.cc
+++ b/ui/app_list/views/start_page_view.cc
@@ -94,8 +94,9 @@ StartPageView::StartPageView(AppListMainView* app_list_main_view,
content::WebContents* start_page_web_contents =
view_delegate->GetStartPageContents();
- 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);
« ui/app_list/views/app_list_view_unittest.cc ('K') | « 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