mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Persist advertising endpoint ID.
PiperOrigin-RevId: 820267327
This commit is contained in:
committed by
Copybara-Service
parent
57dea973e0
commit
4c37f90965
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user