Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1108)

Unified Diff: chrome/browser/metrics/metrics_reporting_state.cc

Issue 365253004: Move options_util.* into chrome/browser/metrics. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: REBASE Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/metrics/metrics_reporting_state.h ('k') | chrome/browser/ui/options/options_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « chrome/browser/metrics/metrics_reporting_state.h ('k') | chrome/browser/ui/options/options_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698