| Index: chrome/browser/chromeos/arc/intent_helper/arc_settings_service.cc
|
| diff --git a/chrome/browser/chromeos/arc/intent_helper/arc_settings_service.cc b/chrome/browser/chromeos/arc/intent_helper/arc_settings_service.cc
|
| index b52c9cac018f5bcfe45e98757899b1efb867c2e4..24fb5081db454e6c0cf874641c2dae18a904e5b4 100644
|
| --- a/chrome/browser/chromeos/arc/intent_helper/arc_settings_service.cc
|
| +++ b/chrome/browser/chromeos/arc/intent_helper/arc_settings_service.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include <string>
|
|
|
| +#include "base/command_line.h"
|
| #include "base/gtest_prod_util.h"
|
| #include "base/json/json_writer.h"
|
| #include "base/values.h"
|
| @@ -14,6 +15,7 @@
|
| #include "chrome/browser/chromeos/settings/cros_settings.h"
|
| #include "chrome/browser/profiles/profile_manager.h"
|
| #include "chrome/common/pref_names.h"
|
| +#include "chromeos/chromeos_switches.h"
|
| #include "chromeos/network/network_handler.h"
|
| #include "chromeos/network/network_state.h"
|
| #include "chromeos/network/network_state_handler.h"
|
| @@ -443,9 +445,14 @@ void ArcSettingsServiceImpl::SyncReportingConsent() const {
|
| }
|
|
|
| void ArcSettingsServiceImpl::SyncSpokenFeedbackEnabled() const {
|
| - SendBoolPrefSettingsBroadcast(
|
| - prefs::kAccessibilitySpokenFeedbackEnabled,
|
| - "org.chromium.arc.intent_helper.SET_SPOKEN_FEEDBACK_ENABLED");
|
| + std::string setting =
|
| + "org.chromium.arc.intent_helper.SET_SPOKEN_FEEDBACK_ENABLED";
|
| + if (base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + chromeos::switches::kEnableChromeVoxArcSupport))
|
| + setting = "org.chromium.arc.intent_helper.SET_ACCESSIBILITY_HELPER_ENABLED";
|
| +
|
| + SendBoolPrefSettingsBroadcast(prefs::kAccessibilitySpokenFeedbackEnabled,
|
| + setting);
|
| }
|
|
|
| void ArcSettingsServiceImpl::SyncTimeZone() const {
|
|
|