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

Unified Diff: chrome/browser/ui/ash/app_list/app_list_service_ash.cc

Issue 970863003: app_list::StartPageService: Document and check nulls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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: chrome/browser/ui/ash/app_list/app_list_service_ash.cc
diff --git a/chrome/browser/ui/ash/app_list/app_list_service_ash.cc b/chrome/browser/ui/ash/app_list/app_list_service_ash.cc
index 38da2f7cd89318317b0086ecb88f148d76291b36..6d0fd0a1a4ced61a6e59fb6f0e4013f0164900ca 100644
--- a/chrome/browser/ui/ash/app_list/app_list_service_ash.cc
+++ b/chrome/browser/ui/ash/app_list/app_list_service_ash.cc
@@ -56,7 +56,10 @@ void AppListServiceAsh::ShowAndSwitchToState(
void AppListServiceAsh::Init(Profile* initial_profile) {
// Ensure the StartPageService is created here. This early initialization is
// necessary to allow the WebContents to load before the app list is shown.
- app_list::StartPageService::Get(initial_profile)->Init();
+ app_list::StartPageService* service =
+ app_list::StartPageService::Get(initial_profile);
+ if (service)
+ service->Init();
}
base::FilePath AppListServiceAsh::GetProfilePath(
« no previous file with comments | « chrome/browser/ui/app_list/start_page_service_factory.h ('k') | chrome/browser/ui/webui/app_list/start_page_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698