| Index: chrome/browser/search/hotword_service.h
|
| diff --git a/chrome/browser/search/hotword_service.h b/chrome/browser/search/hotword_service.h
|
| index c871684914afe3c20f7e257e368548e21c7edfd6..479c1b647d86b7ea939938ba2ca4e65bef61e53d 100644
|
| --- a/chrome/browser/search/hotword_service.h
|
| +++ b/chrome/browser/search/hotword_service.h
|
| @@ -110,6 +110,21 @@ class HotwordService : public content::NotificationObserver,
|
| // no error.
|
| int error_message() { return error_message_; }
|
|
|
| + // These methods are for launching, and getting and setting the launch mode of
|
| + // the Hotword Audio Verification App.
|
| + //
|
| + // TODO(kcarattini): Remove this when
|
| + // https://code.google.com/p/chromium/issues/detail?id=165573 is fixed,
|
| + // at which time we can simply launch the app in the given mode instead of
|
| + // having to check for it here.
|
| + enum LaunchMode {
|
| + AUDIO_HISTORY_ONLY,
|
| + HOTWORD_ONLY,
|
| + HOTWORD_AND_AUDIO_HISTORY
|
| + };
|
| + void LaunchHotwordAudioVerificationApp(const LaunchMode& launch_mode);
|
| + virtual LaunchMode GetHotwordAudioVerificationLaunchMode();
|
| +
|
| private:
|
| Profile* profile_;
|
|
|
| @@ -130,6 +145,9 @@ class HotwordService : public content::NotificationObserver,
|
|
|
| base::WeakPtrFactory<HotwordService> weak_factory_;
|
|
|
| + // Stores the launch mode for the Hotword Audio Verification App.
|
| + LaunchMode hotword_audio_verification_launch_mode_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(HotwordService);
|
| };
|
|
|
|
|