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

Unified Diff: chrome/browser/ui/webui/app_list/start_page_handler.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
« no previous file with comments | « chrome/browser/ui/ash/app_list/app_list_service_ash.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/app_list/start_page_handler.cc
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 7868d7d128d7eddbc2a12662b525e8b0c8273d04..d8234cc1c25cde1e93112f0bc6ee8bf65a009f45 100644
--- a/chrome/browser/ui/webui/app_list/start_page_handler.cc
+++ b/chrome/browser/ui/webui/app_list/start_page_handler.cc
@@ -127,7 +127,7 @@ void StartPageHandler::OnHotwordEnabledChanged() {
StartPageService* service = StartPageService::Get(profile);
web_ui()->CallJavascriptFunction(
"appList.startPage.setHotwordEnabled",
- base::FundamentalValue(service->HotwordEnabled()));
+ base::FundamentalValue(service && service->HotwordEnabled()));
}
}
#endif
« no previous file with comments | « chrome/browser/ui/ash/app_list/app_list_service_ash.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698