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

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: 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
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 89%
rename from chrome/browser/ui/options/options_util.cc
rename to chrome/browser/metrics/metrics_reporting_state.cc
index 41efdc2b96925792e86e6d964bef00872c35f414..a80650a3f1fdc660cae561b7a798901f2ff98dd2 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;

Powered by Google App Engine
This is Rietveld 408576698