Persist advertising endpoint ID.

PiperOrigin-RevId: 820267327
This commit is contained in:
Guogang Li
2025-10-16 09:25:06 -07:00
committed by Copybara-Service
parent 57dea973e0
commit 4c37f90965
10 changed files with 174 additions and 4 deletions
@@ -372,6 +372,9 @@ class ClientProxy final {
// Forces client to regenerate a new local endpoint id.
void ClearCachedLocalEndpointId();
// Saves the client information to preferences.
void SaveClientInfoToPreferences();
private:
struct Connection {
// Status: may be either:
@@ -460,6 +463,7 @@ class ClientProxy final {
std::optional<std::string> GetEndpointIdForDct() const;
void InitializePreferencesManager();
void LoadClientInfoFromPreferences();
// The device name used for DCT advertising.
std::string dct_device_name_;