• Home
  • Raw
  • Download

Lines Matching refs:settings_

94     : settings_{CreateDefaultSettings()}, config_store_{config_store} {  in Config()
101 callback.Run(settings_); in AddOnChangedCallback()
105 return settings_; in GetSettings()
112 settings_ = CreateDefaultSettings(); in Load()
118 CHECK(config_store_->LoadDefaults(&settings_)); in Load()
120 CHECK(!settings_.client_id.empty()); in Load()
121 CHECK(!settings_.client_secret.empty()); in Load()
122 CHECK(!settings_.api_key.empty()); in Load()
123 CHECK(!settings_.oauth_url.empty()); in Load()
124 CHECK(!settings_.service_url.empty()); in Load()
125 CHECK(!settings_.xmpp_endpoint.empty()); in Load()
126 CHECK(!settings_.oem_name.empty()); in Load()
127 CHECK(!settings_.model_name.empty()); in Load()
128 CHECK(!settings_.model_id.empty()); in Load()
129 CHECK(!settings_.name.empty()); in Load()
130 CHECK(!settings_.device_id.empty()); in Load()
131 CHECK_EQ(settings_.embedded_code.empty(), in Load()
132 (settings_.pairing_modes.find(PairingType::kEmbeddedCode) == in Load()
133 settings_.pairing_modes.end())); in Load()
136 CHECK(settings_.cloud_id.empty()); in Load()
137 CHECK(settings_.refresh_token.empty()); in Load()
138 CHECK(settings_.robot_account.empty()); in Load()
139 CHECK(settings_.last_configured_ssid.empty()); in Load()
140 CHECK(settings_.secret.empty()); in Load()
141 CHECK(settings_.root_client_token_owner == RootClientTokenOwner::kNone); in Load()
255 dict.SetString(config_keys::kClientId, settings_.client_id); in Save()
256 dict.SetString(config_keys::kClientSecret, settings_.client_secret); in Save()
257 dict.SetString(config_keys::kApiKey, settings_.api_key); in Save()
258 dict.SetString(config_keys::kOAuthURL, settings_.oauth_url); in Save()
259 dict.SetString(config_keys::kServiceURL, settings_.service_url); in Save()
260 dict.SetString(config_keys::kXmppEndpoint, settings_.xmpp_endpoint); in Save()
261 dict.SetString(config_keys::kRefreshToken, settings_.refresh_token); in Save()
262 dict.SetString(config_keys::kCloudId, settings_.cloud_id); in Save()
263 dict.SetString(config_keys::kDeviceId, settings_.device_id); in Save()
264 dict.SetString(config_keys::kRobotAccount, settings_.robot_account); in Save()
266 settings_.last_configured_ssid); in Save()
267 dict.SetString(config_keys::kSecret, Base64Encode(settings_.secret)); in Save()
269 EnumToString(settings_.root_client_token_owner)); in Save()
270 dict.SetString(config_keys::kName, settings_.name); in Save()
271 dict.SetString(config_keys::kDescription, settings_.description); in Save()
272 dict.SetString(config_keys::kLocation, settings_.location); in Save()
274 EnumToString(settings_.local_anonymous_access_role)); in Save()
276 settings_.local_discovery_enabled); in Save()
278 settings_.local_pairing_enabled); in Save()
299 cb.Run(*settings_); in Commit()