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

Unified Diff: chrome/browser/extensions/api/hotword_private/hotword_private_api.cc

Issue 1011913005: Hotword: Adds a field for always_on_available to the API StatusDetails (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Typo Created 5 years, 9 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 | « no previous file | chrome/browser/resources/hotword/page_audio_manager.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/hotword_private/hotword_private_api.cc
diff --git a/chrome/browser/extensions/api/hotword_private/hotword_private_api.cc b/chrome/browser/extensions/api/hotword_private/hotword_private_api.cc
index 2c37752ce7d2036b53845b96d79468f53fd9dfff..495acdfacd339bffd02007c008342e907052cced 100644
--- a/chrome/browser/extensions/api/hotword_private/hotword_private_api.cc
+++ b/chrome/browser/extensions/api/hotword_private/hotword_private_api.cc
@@ -151,12 +151,15 @@ bool HotwordPrivateGetStatusFunction::RunSync() {
HotwordServiceFactory::GetForProfile(GetProfile());
if (!hotword_service) {
result.available = false;
+ result.always_on_available = false;
result.enabled = false;
result.audio_logging_enabled = false;
result.always_on_enabled = false;
result.user_is_active = false;
} else {
result.available = hotword_service->IsServiceAvailable();
+ result.always_on_available =
+ HotwordServiceFactory::IsAlwaysOnAvailable();
result.enabled = hotword_service->IsSometimesOnEnabled();
result.audio_logging_enabled = hotword_service->IsOptedIntoAudioLogging();
result.training_enabled = hotword_service->IsTraining();
« no previous file with comments | « no previous file | chrome/browser/resources/hotword/page_audio_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698