Lines Matching refs:prefs
224 if (!SystemState::Get()->prefs()->SetString(kPrefsOmahaCohortHint, in SetCohortHint()
238 const auto* prefs = SystemState::Get()->prefs(); in GetCohortHint() local
240 if (prefs->Exists(kPrefsOmahaCohortHint) && in GetCohortHint()
241 !prefs->GetString(kPrefsOmahaCohortHint, out_cohort_hint)) { in GetCohortHint()
250 if (!SystemState::Get()->prefs()->SetBoolean(kPrefsP2PEnabled, in_enabled)) { in SetP2PUpdatePermission()
263 const auto* prefs = SystemState::Get()->prefs(); in GetP2PUpdatePermission() local
265 if (prefs->Exists(kPrefsP2PEnabled) && in GetP2PUpdatePermission()
266 !prefs->GetBoolean(kPrefsP2PEnabled, &p2p_pref)) { in GetP2PUpdatePermission()
291 if (!SystemState::Get()->prefs()->SetBoolean( in SetUpdateOverCellularPermission()
321 auto* prefs = SystemState::Get()->prefs(); in SetUpdateOverCellularTarget() local
322 if (!prefs->SetString(kPrefsUpdateOverCellularTargetVersion, in SetUpdateOverCellularTarget()
324 !prefs->SetInt64(kPrefsUpdateOverCellularTargetSize, target_size)) { in SetUpdateOverCellularTarget()
342 const auto* prefs = SystemState::Get()->prefs(); in GetUpdateOverCellularPermission() local
343 if (!prefs->Exists(kPrefsUpdateOverCellularPermission)) { in GetUpdateOverCellularPermission()
351 if (!prefs->GetBoolean(kPrefsUpdateOverCellularPermission, &is_allowed)) { in GetUpdateOverCellularPermission()