diff options
-rw-r--r-- | chrome/browser/ui/webui/app_list/start_page_handler.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/ui/webui/app_list/start_page_handler.cc b/chrome/browser/ui/webui/app_list/start_page_handler.cc index a7be1ee..51b6a8d 100644 --- a/chrome/browser/ui/webui/app_list/start_page_handler.cc +++ b/chrome/browser/ui/webui/app_list/start_page_handler.cc @@ -82,7 +82,11 @@ void StartPageHandler::SendRecommendedApps() { void StartPageHandler::HandleInitialize(const base::ListValue* args) { Profile* profile = Profile::FromWebUI(web_ui()); - recommended_apps_ = StartPageService::Get(profile)->recommended_apps(); + StartPageService* service = StartPageService::Get(profile); + if (!service) + return; + + recommended_apps_ = service->recommended_apps(); recommended_apps_->AddObserver(this); SendRecommendedApps(); |