Index: chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.h |
diff --git a/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.h b/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.h |
index 79658292a479fbac6a4bf9ab1aab49ae1d326f0a..53825f06c457a34d2f4abfa43ba7c0820caed4c6 100644 |
--- a/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.h |
+++ b/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.h |
@@ -9,6 +9,7 @@ |
#include "base/macros.h" |
#include "base/time/time.h" |
+#include "chrome/browser/chromeos/arc/arc_session_manager.h" |
#include "components/arc/arc_service.h" |
#include "components/arc/common/voice_interaction_framework.mojom.h" |
#include "components/arc/instance_holder.h" |
@@ -30,8 +31,8 @@ class ArcVoiceInteractionFrameworkService |
public mojom::VoiceInteractionFrameworkHost, |
public ui::AcceleratorTarget, |
public ui::EventHandler, |
- public InstanceHolder< |
- mojom::VoiceInteractionFrameworkInstance>::Observer { |
+ public InstanceHolder<mojom::VoiceInteractionFrameworkInstance>::Observer, |
+ public ArcSessionManager::Observer { |
public: |
explicit ArcVoiceInteractionFrameworkService( |
ArcBridgeService* bridge_service); |
@@ -60,6 +61,9 @@ class ArcVoiceInteractionFrameworkService |
void ShowMetalayer(const base::Closure& closed); |
void HideMetalayer(); |
+ // ArcSessionManager::Observer overrides. |
+ void OnArcPlayStoreEnabledChanged(bool enabled) override; |
+ |
// Starts a voice interaction session after user-initiated interaction. |
// Records a timestamp and sets number of allowed requests to 2 since by |
// design, there will be one request for screenshot and the other for |
@@ -86,6 +90,10 @@ class ArcVoiceInteractionFrameworkService |
// Start the voice interaction setup wizard in container. |
void StartVoiceInteractionSetupWizard(); |
+ // Update voice interaction flags. These flags are set only once when Arc |
+ // container is enabled. |
+ void UpdateVoiceInteractionPrefs(); |
+ |
// For supporting ArcServiceManager::GetService<T>(). |
static const char kArcServiceName[]; |