Add flag to enable async grpc client.

PiperOrigin-RevId: 808220477
This commit is contained in:
Francis Tsui
2025-09-17 10:57:43 -07:00
committed by Copybara-Service
parent 8f7afa358f
commit 3f4e2a6ca0
2 changed files with 5 additions and 1 deletions
@@ -76,6 +76,9 @@ constexpr auto kDeleteUnexpectedReceivedFileFix =
// The default time in milliseconds a cached entry can be in LOST state.
constexpr auto kDiscoveryCacheLostExpiryMs =
flags::Flag<int64_t>(kConfigPackage, "45658774", 500);
// When true, enable Nearby Share gRPC async client.
constexpr auto kEnableNearbyShareGrpcAsyncClient =
flags::Flag<bool>(kConfigPackage, "45726584", false);
// When true, enable wifi hotspot medium for HP Realtek devices.
constexpr auto kEnableWifiHotspotForHpRealtekDevices =
flags::Flag<bool>(kConfigPackage, "45673628", false);
@@ -128,6 +131,7 @@ inline absl::btree_map<int, const flags::Flag<bool>&> GetBoolFlags() {
{45409033, kShowAutoUpdateSetting},
{45630055, kUseGrpcClient},
{45657036, kDeleteUnexpectedReceivedFileFix},
{45726584, kEnableNearbyShareGrpcAsyncClient},
{45673628, kEnableWifiHotspotForHpRealtekDevices},
{45683539, kUseAlternateServiceUuidForDiscovery},
{45417647, kEnableQrCodeUi},