Index: components/crash/content/app/crashpad.cc |
diff --git a/components/crash/content/app/crashpad.cc b/components/crash/content/app/crashpad.cc |
index 3d76644cc0e7f5262986a160ccbd0c446423d5be..76f67348ab0fcb6cd0e7ed3412a410d31be569da 100644 |
--- a/components/crash/content/app/crashpad.cc |
+++ b/components/crash/content/app/crashpad.cc |
@@ -307,10 +307,11 @@ extern "C" { |
// This function is used in chrome_metrics_services_manager_client.cc to trigger |
// changes to the upload-enabled state. This is done when the metrics services |
// are initialized, and when the user changes their consent for uploads. See |
-// crash_reporter::SetUploadConsent for effects. |
+// crash_reporter::SetUploadConsent for effects. The given consent value should |
+// be consistent with |
+// crash_reporter::GetCrashReporterClient()->GetCollectStatsConsent(), but it's |
+// not enforced to avoid blocking startup code on synchronizing them. |
void __declspec(dllexport) __cdecl SetUploadConsentImpl(bool consent) { |
- DCHECK_EQ(consent, |
- crash_reporter::GetCrashReporterClient()->GetCollectStatsConsent()); |
crash_reporter::SetUploadConsent(consent); |
} |