• Home
  • Raw
  • Download

Lines Matching refs:prefs

214   PrefsInterface* prefs = system_state_->prefs();  in SetCohortHint()  local
219 if (!prefs->SetString(kPrefsOmahaCohortHint, in_cohort_hint)) { in SetCohortHint()
232 PrefsInterface* prefs = system_state_->prefs(); in GetCohortHint() local
235 if (prefs->Exists(kPrefsOmahaCohortHint) && in GetCohortHint()
236 !prefs->GetString(kPrefsOmahaCohortHint, out_cohort_hint)) { in GetCohortHint()
245 PrefsInterface* prefs = system_state_->prefs(); in SetP2PUpdatePermission() local
247 if (!prefs->SetBoolean(kPrefsP2PEnabled, in_enabled)) { in SetP2PUpdatePermission()
260 PrefsInterface* prefs = system_state_->prefs(); in GetP2PUpdatePermission() local
263 if (prefs->Exists(kPrefsP2PEnabled) && in GetP2PUpdatePermission()
264 !prefs->GetBoolean(kPrefsP2PEnabled, &p2p_pref)) { in GetP2PUpdatePermission()
290 PrefsInterface* prefs = system_state_->prefs(); in SetUpdateOverCellularPermission() local
292 if (!prefs || in SetUpdateOverCellularPermission()
293 !prefs->SetBoolean(kPrefsUpdateOverCellularPermission, in_allowed)) { in SetUpdateOverCellularPermission()
322 PrefsInterface* prefs = system_state_->prefs(); in SetUpdateOverCellularTarget() local
324 if (!prefs || in SetUpdateOverCellularTarget()
325 !prefs->SetString(kPrefsUpdateOverCellularTargetVersion, in SetUpdateOverCellularTarget()
327 !prefs->SetInt64(kPrefsUpdateOverCellularTargetSize, target_size)) { in SetUpdateOverCellularTarget()
345 PrefsInterface* prefs = system_state_->prefs(); in GetUpdateOverCellularPermission() local
347 if (!prefs || !prefs->Exists(kPrefsUpdateOverCellularPermission)) { in GetUpdateOverCellularPermission()
355 if (!prefs->GetBoolean(kPrefsUpdateOverCellularPermission, &is_allowed)) { in GetUpdateOverCellularPermission()
417 PrefsInterface* prefs = system_state_->prefs(); in GetEolStatus() local
420 if (prefs->Exists(kPrefsOmahaEolStatus) && in GetEolStatus()
421 !prefs->GetString(kPrefsOmahaEolStatus, &str_eol_status)) { in GetEolStatus()