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

Unified Diff: chrome/browser/ui/app_list/start_page_service.cc

Issue 804853002: Only log voice recognition in always-on hotwording mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/start_page_service.cc
diff --git a/chrome/browser/ui/app_list/start_page_service.cc b/chrome/browser/ui/app_list/start_page_service.cc
index a271dfb2269259f25d9c78cec2dc42260f312d9e..beca7d4c5240d82f55157786334efe75967ce636 100644
--- a/chrome/browser/ui/app_list/start_page_service.cc
+++ b/chrome/browser/ui/app_list/start_page_service.cc
@@ -352,6 +352,7 @@ void StartPageService::GetSpeechAuthParameters(std::string* auth_scope,
HotwordService* service = HotwordServiceFactory::GetForProfile(profile_);
if (service &&
service->IsOptedIntoAudioLogging() &&
+ service->IsAlwaysOnEnabled() &&
!speech_auth_helper_->GetToken().empty()) {
*auth_scope = speech_auth_helper_->GetScope();
*auth_token = speech_auth_helper_->GetToken();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698