Lines Matching refs:pref
59 std::string GetMetricsEnabledDate(PrefService* pref) { in GetMetricsEnabledDate() argument
60 if (!pref) { in GetMetricsEnabledDate()
65 return pref->GetString(metrics::prefs::kMetricsReportingEnabledTimestamp); in GetMetricsEnabledDate()
223 PrefService* pref = local_state_; in RecordStabilityMetrics() local
224 DCHECK(pref); in RecordStabilityMetrics()
230 WriteRequiredStabilityAttributes(pref); in RecordStabilityMetrics()
236 WriteRealtimeStabilityAttributes(pref, incremental_uptime, uptime); in RecordStabilityMetrics()
247 pref->GetInteger(metrics::prefs::kStabilityIncompleteSessionEndCount); in RecordStabilityMetrics()
248 pref->SetInteger(metrics::prefs::kStabilityIncompleteSessionEndCount, 0); in RecordStabilityMetrics()
250 pref->GetInteger(metrics::prefs::kStabilityBreakpadRegistrationSuccess); in RecordStabilityMetrics()
251 pref->SetInteger(metrics::prefs::kStabilityBreakpadRegistrationSuccess, 0); in RecordStabilityMetrics()
253 pref->GetInteger(metrics::prefs::kStabilityBreakpadRegistrationFail); in RecordStabilityMetrics()
254 pref->SetInteger(metrics::prefs::kStabilityBreakpadRegistrationFail, 0); in RecordStabilityMetrics()
256 pref->GetInteger(metrics::prefs::kStabilityDebuggerPresent); in RecordStabilityMetrics()
257 pref->SetInteger(metrics::prefs::kStabilityDebuggerPresent, 0); in RecordStabilityMetrics()
259 pref->GetInteger(metrics::prefs::kStabilityDebuggerNotPresent); in RecordStabilityMetrics()
260 pref->SetInteger(metrics::prefs::kStabilityDebuggerNotPresent, 0); in RecordStabilityMetrics()
298 void MetricsLog::WriteRequiredStabilityAttributes(PrefService* pref) { in WriteRequiredStabilityAttributes() argument
299 int launch_count = pref->GetInteger(metrics::prefs::kStabilityLaunchCount); in WriteRequiredStabilityAttributes()
300 pref->SetInteger(metrics::prefs::kStabilityLaunchCount, 0); in WriteRequiredStabilityAttributes()
301 int crash_count = pref->GetInteger(metrics::prefs::kStabilityCrashCount); in WriteRequiredStabilityAttributes()
302 pref->SetInteger(metrics::prefs::kStabilityCrashCount, 0); in WriteRequiredStabilityAttributes()
311 PrefService* pref, in WriteRealtimeStabilityAttributes() argument