Index: chrome/browser/google/google_update_settings_posix.cc |
diff --git a/chrome/browser/google/google_update_settings_posix.cc b/chrome/browser/google/google_update_settings_posix.cc |
index 80e453fe05227d0260cb319024d701b2c1fc608d..31e73018c572566f1a411bc5022a6500c4c96866 100644 |
--- a/chrome/browser/google/google_update_settings_posix.cc |
+++ b/chrome/browser/google/google_update_settings_posix.cc |
@@ -12,6 +12,10 @@ |
#include "base/synchronization/lock.h" |
#include "chrome/common/chrome_paths.h" |
+#if defined(OS_MACOSX) |
+#include "components/crash/app/crashpad_mac.h" |
+#endif |
+ |
namespace { |
base::LazyInstance<std::string>::Leaky g_posix_client_id = |
@@ -58,6 +62,10 @@ bool GoogleUpdateSettings::GetCollectStatsConsent() { |
// static |
bool GoogleUpdateSettings::SetCollectStatsConsent(bool consented) { |
+#if defined(OS_MACOSX) |
+ crash_reporter::SetUploadsEnabled(consented); |
+#endif |
+ |
base::FilePath consent_dir; |
PathService::Get(chrome::DIR_USER_DATA, &consent_dir); |
if (!base::DirectoryExists(consent_dir)) |