Index: chrome/browser/metrics/metrics_reporting_state.cc |
diff --git a/chrome/browser/ui/options/options_util.cc b/chrome/browser/metrics/metrics_reporting_state.cc |
similarity index 83% |
rename from chrome/browser/ui/options/options_util.cc |
rename to chrome/browser/metrics/metrics_reporting_state.cc |
index 41efdc2b96925792e86e6d964bef00872c35f414..a3a6bece05330971fddb563a271a55b5be0b0fb7 100644 |
--- a/chrome/browser/ui/options/options_util.cc |
+++ b/chrome/browser/metrics/metrics_reporting_state.cc |
@@ -2,15 +2,14 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "chrome/browser/ui/options/options_util.h" |
+#include "chrome/browser/metrics/metrics_reporting_state.h" |
#include "base/threading/thread_restrictions.h" |
#include "chrome/browser/browser_process.h" |
#include "chrome/installer/util/google_update_settings.h" |
#include "components/metrics/metrics_service.h" |
-// static |
-bool OptionsUtil::ResolveMetricsReportingEnabled(bool enabled) { |
+bool ResolveMetricsReportingEnabled(bool enabled) { |
// GoogleUpdateSettings touches the disk from the UI thread. MetricsService |
// also calls GoogleUpdateSettings below. http://crbug/62626 |
base::ThreadRestrictions::ScopedAllowIO allow_io; |
@@ -19,7 +18,7 @@ bool OptionsUtil::ResolveMetricsReportingEnabled(bool enabled) { |
bool update_pref = GoogleUpdateSettings::GetCollectStatsConsent(); |
if (enabled != update_pref) |
- DVLOG(1) << "OptionsUtil: Unable to set crash report status to " << enabled; |
+ DVLOG(1) << "Unable to set crash report status to " << enabled; |
// Only change the pref if GoogleUpdateSettings::GetCollectStatsConsent |
// succeeds. |