Searched refs:prefs_key (Results 1 – 3 of 3) sorted by relevance
178 const string prefs_key) { in GetCohortArgXml() argument181 if (!prefs->Exists(prefs_key)) in GetCohortArgXml()184 if (!prefs->GetString(prefs_key, &cohort_value) || cohort_value.empty()) in GetCohortArgXml()1516 const string& prefs_key, in PersistCohortData() argument1518 if (new_value.empty() && system_state_->prefs()->Exists(prefs_key)) { in PersistCohortData()1519 LOG(INFO) << "Removing stored " << prefs_key << " value."; in PersistCohortData()1520 return system_state_->prefs()->Delete(prefs_key); in PersistCohortData()1522 LOG(INFO) << "Storing new setting " << prefs_key << " as " << new_value; in PersistCohortData()1523 return system_state_->prefs()->SetString(prefs_key, new_value); in PersistCohortData()
220 bool PersistCohortData(const std::string& prefs_key,
1154 string prefs_key = GetPrefsKey(kPrefsCurrentBytesDownloaded, source); in SetCurrentBytesDownloaded() local1155 prefs_->SetInt64(prefs_key, current_bytes_downloaded); in SetCurrentBytesDownloaded()1179 string prefs_key = GetPrefsKey(kPrefsTotalBytesDownloaded, source); in SetTotalBytesDownloaded() local1180 prefs_->SetInt64(prefs_key, total_bytes_downloaded); in SetTotalBytesDownloaded()