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

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

Issue 559303002: Hotword Audio Verification app: control the hotword settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@launch-state
Patch Set: Created 6 years, 3 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/extensions/api/hotword_private/hotword_private_api.h
diff --git a/chrome/browser/extensions/api/hotword_private/hotword_private_api.h b/chrome/browser/extensions/api/hotword_private/hotword_private_api.h
index 8013621860e4b362d463bd8b83e6596cc8e381c1..62a8f0cd22244e662d2f3740a3bb765907ccf359 100644
--- a/chrome/browser/extensions/api/hotword_private/hotword_private_api.h
+++ b/chrome/browser/extensions/api/hotword_private/hotword_private_api.h
@@ -69,6 +69,19 @@ class HotwordPrivateSetAudioLoggingEnabledFunction
virtual bool RunSync() OVERRIDE;
};
+class HotwordPrivateSetHotwordAlwaysOnSearchEnabledFunction
rpetterson 2014/09/11 20:14:17 Perhaps just SetAlwaysOnSearchEnabled? I think the
kcarattini 2014/09/12 01:02:07 The name of the pref being changed in prefs.h is k
rpetterson 2014/09/12 03:03:32 We only use SetEnabled for the pref call kHotwordS
kcarattini 2014/09/12 05:17:56 Acknowledged.
+ : public ChromeSyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("hotwordPrivate.setHotwordAlwaysOnSearchEnabled",
+ HOTWORDPRIVATE_SETHOTWORDALWAYSONSEARCHENABLED)
+
+ protected:
+ virtual ~HotwordPrivateSetHotwordAlwaysOnSearchEnabledFunction() {}
+
+ // ExtensionFunction:
+ virtual bool RunSync() OVERRIDE;
+};
+
class HotwordPrivateGetStatusFunction : public ChromeSyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("hotwordPrivate.getStatus",

Powered by Google App Engine
This is Rietveld 408576698