Lines Matching refs:EvalStatus
201 EvalStatus ChromeOSPolicy::UpdateCheckAllowed(EvaluationContext* ec, in UpdateCheckAllowed()
247 EvalStatus status = ConsultPolicies(policies_to_consult, in UpdateCheckAllowed()
253 if (EvalStatus::kContinue != status) { in UpdateCheckAllowed()
258 return EvalStatus::kSucceeded; in UpdateCheckAllowed()
262 EvalStatus ChromeOSPolicy::UpdateCanBeApplied(EvaluationContext* ec, in UpdateCanBeApplied()
279 EvalStatus status = ConsultPolicies(policies_to_consult, in UpdateCanBeApplied()
286 if (EvalStatus::kContinue != status) { in UpdateCanBeApplied()
292 return EvalStatus::kSucceeded; in UpdateCanBeApplied()
296 EvalStatus ChromeOSPolicy::UpdateCanStart( in UpdateCanStart()
321 EvalStatus check_status = UpdateCheckAllowed(ec, state, error, &check_result); in UpdateCanStart()
322 if (check_status == EvalStatus::kFailed) in UpdateCanStart()
323 return EvalStatus::kFailed; in UpdateCanStart()
324 bool is_check_due = (check_status == EvalStatus::kSucceeded && in UpdateCanStart()
331 EvalStatus backoff_url_status = UpdateBackoffAndDownloadUrl( in UpdateCanStart()
333 if (backoff_url_status == EvalStatus::kFailed) in UpdateCanStart()
334 return EvalStatus::kFailed; in UpdateCanStart()
340 (backoff_url_status == EvalStatus::kAskMeAgainLater) || in UpdateCanStart()
345 EvalStatus scattering_status = EvalStatus::kSucceeded; in UpdateCanStart()
378 if (scattering_status == EvalStatus::kFailed) { in UpdateCanStart()
379 return EvalStatus::kFailed; in UpdateCanStart()
383 if (scattering_status == EvalStatus::kAskMeAgainLater || in UpdateCanStart()
392 EvalStatus p2p_enabled_status = P2PEnabled(ec, state, error, &p2p_enabled); in UpdateCanStart()
393 if (p2p_enabled_status != EvalStatus::kSucceeded) in UpdateCanStart()
394 return EvalStatus::kFailed; in UpdateCanStart()
434 return EvalStatus::kSucceeded; in UpdateCanStart()
446 return EvalStatus::kSucceeded; in UpdateCanStart()
451 return EvalStatus::kSucceeded; in UpdateCanStart()
465 EvalStatus ChromeOSPolicy::UpdateDownloadAllowed(EvaluationContext* ec, in UpdateDownloadAllowed()
503 return EvalStatus::kFailed; in UpdateDownloadAllowed()
511 return EvalStatus::kSucceeded; in UpdateDownloadAllowed()
524 return EvalStatus::kSucceeded; in UpdateDownloadAllowed()
537 return (*result ? EvalStatus::kSucceeded : EvalStatus::kAskMeAgainLater); in UpdateDownloadAllowed()
540 EvalStatus ChromeOSPolicy::P2PEnabled(EvaluationContext* ec, in P2PEnabled()
573 return EvalStatus::kSucceeded; in P2PEnabled()
576 EvalStatus ChromeOSPolicy::P2PEnabledChanged(EvaluationContext* ec, in P2PEnabledChanged()
581 EvalStatus status = P2PEnabled(ec, state, error, result); in P2PEnabledChanged()
582 if (status == EvalStatus::kSucceeded && *result == prev_result) in P2PEnabledChanged()
583 return EvalStatus::kAskMeAgainLater; in P2PEnabledChanged()
587 EvalStatus ChromeOSPolicy::UpdateBackoffAndDownloadUrl( in UpdateBackoffAndDownloadUrl()
624 return EvalStatus::kAskMeAgainLater; in UpdateBackoffAndDownloadUrl()
676 return EvalStatus::kFailed; in UpdateBackoffAndDownloadUrl()
689 return EvalStatus::kFailed; in UpdateBackoffAndDownloadUrl()
778 return EvalStatus::kSucceeded; in UpdateBackoffAndDownloadUrl()
781 EvalStatus ChromeOSPolicy::UpdateScattering( in UpdateScattering()
802 return EvalStatus::kSucceeded; in UpdateScattering()
808 return EvalStatus::kSucceeded; in UpdateScattering()
855 EvalStatus ret = EvalStatus::kSucceeded; in UpdateScattering()
858 ret = EvalStatus::kAskMeAgainLater; in UpdateScattering()