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

Unified Diff: chrome/browser/resources/hotword/page_audio_manager.js

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: Adress merge conflicts 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
Index: chrome/browser/resources/hotword/page_audio_manager.js
diff --git a/chrome/browser/resources/hotword/page_audio_manager.js b/chrome/browser/resources/hotword/page_audio_manager.js
index 8a67cdaba7be6ed7213ac94c6f9daf7cb670b769..eb079a966a323f52ee80f733511141632ee590e7 100644
--- a/chrome/browser/resources/hotword/page_audio_manager.js
+++ b/chrome/browser/resources/hotword/page_audio_manager.js
@@ -455,7 +455,7 @@ cr.define('hotword', function() {
var response = {'doNotShowOptinMessage': true};
if (!tab.incognito && hotwordStatus.available &&
- !hotwordStatus.enabledSet) {
+ !hotwordStatus.enabledSet && !hotwordStatus.alwaysOnAvailable) {
benwells 2015/03/17 03:02:55 Why is this !available? My reading of this is that
kcarattini 2015/03/17 04:22:17 That's correct. This promo is for the 'sometimes-o
response = hotwordStatus;
}

Powered by Google App Engine
This is Rietveld 408576698