diff options
-rw-r--r-- | chrome/browser/options_util.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/options_util.cc b/chrome/browser/options_util.cc index 56d0c07..2f485e8 100644 --- a/chrome/browser/options_util.cc +++ b/chrome/browser/options_util.cc @@ -4,6 +4,7 @@ #include "chrome/browser/options_util.h" +#include "base/thread_restrictions.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/download/download_manager.h" #include "chrome/browser/download/download_prefs.h" @@ -97,6 +98,10 @@ void OptionsUtil::ResetToDefaults(Profile* profile) { // static bool OptionsUtil::ResolveMetricsReportingEnabled(bool enabled) { + // GoogleUpdateSettings touches the disk from the UI thread. MetricsService + // also calls GoogleUpdateSettings below. http://crbug/62626 + base::ThreadRestrictions::ScopedAllowIO allow_io; + GoogleUpdateSettings::SetCollectStatsConsent(enabled); bool update_pref = GoogleUpdateSettings::GetCollectStatsConsent(); |