[Fast Pair] Flag opt-in checks behind new feature flag
Adds a FastPairSavedDevices feature flag to hide opt-in status checks
in the retroactive pairing detector before notifying of device found.
the fast pair pairing protocol before writing an account key, and in the
fast pair presenter flow before determining which notification to show.
Verified on DUT the following behaviors:
1. User logged in, no Android phone: Fast Pair saved to their account
2. USer logged in, Android phone: Fast Pair saved to their account
3. Guest mode: Fast Pair not saved to their account
Fixed: b/229296580
Test: Verified on DUT and added unit tests
Change-Id: I8467f1d68fbeb824c4beea157d3f68603caab7d6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3583361
Reviewed-by: Daniel Classon <[email protected]>
Reviewed-by: Jon Mann <[email protected]>
Commit-Queue: Juliet Lévesque <[email protected]>
Cr-Commit-Position: refs/heads/main@{#993798}
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
index fc063ad..c6b8cd72 100644
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -4424,6 +4424,12 @@
"Enables the \"Subsequent Pairing\" Fast Pair scenario in Bluetooth "
"Settings and Quick Settings.";
+const char kFastPairSavedDevicesName[] = "Enable Fast Pair Saved Devices";
+const char kFastPairSavedDevicesDescription[] =
+ "Enables the Fast Pair \"Saved Devices\" page to display a list of the "
+ "user's devices and provide the option to opt in or out of saving devices "
+ "to their account.";
+
const char kUseHDRTransferFunctionName[] =
"Monitor/Display HDR transfer function";
const char kUseHDRTransferFunctionDescription[] =