[CrOS MultiDevice] Set features as supported only if flags are enabled.
When devices are enrolled in CryptAuth back-end, a GcmDeviceInfo proto
is sent to the back-end; this proto contains a list of features which
are supported by the device. Previously, all client-side features were
set to supported, but this should actually only be done when their
associated flags were enabled.
With this CL, features are only marked as supported when the flags are
enabled. A follow-up CL will force re-enrollment when one of these flags
changes.
Bug: 824568
Change-Id: Ieea23ad6595e7880012aed2afcb57cc7aa04d6f9
Reviewed-on: https://chromium-review.googlesource.com/1130510
Reviewed-by: Jeremy Klein <[email protected]>
Commit-Queue: Kyle Horimoto <[email protected]>
Cr-Commit-Position: refs/heads/master@{#573803}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 65ac0fa..0458c63 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -1557,7 +1557,7 @@
SINGLE_VALUE_TYPE(chromeos::switches::kHideActiveAppsFromShelf)},
{"instant-tethering", flag_descriptions::kTetherName,
flag_descriptions::kTetherDescription, kOsCrOS,
- FEATURE_VALUE_TYPE(features::kInstantTethering)},
+ FEATURE_VALUE_TYPE(chromeos::features::kInstantTethering)},
{"multidevice-service", flag_descriptions::kMultiDeviceApiName,
flag_descriptions::kMultiDeviceApiDescription, kOsCrOS,
FEATURE_VALUE_TYPE(chromeos::features::kMultiDeviceApi)},