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

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

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
Index: chrome/browser/metrics/metrics_reporting_state.h
diff --git a/android_webview/native/cookie_manager.h b/chrome/browser/metrics/metrics_reporting_state.h
similarity index 23%
copy from android_webview/native/cookie_manager.h
copy to chrome/browser/metrics/metrics_reporting_state.h
index 28075557bf9af8005c984d19641ce99756608843..c333d84e52b87cfbe39697c3be71c829659838a2 100644
--- a/android_webview/native/cookie_manager.h
+++ b/chrome/browser/metrics/metrics_reporting_state.h
@@ -2,15 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ANDROID_WEBVIEW_NATIVE_COOKIE_MANAGER_H_
-#define ANDROID_WEBVIEW_NATIVE_COOKIE_MANAGER_H_
+#ifndef CHROME_BROWSER_METRICS_METRICS_REPORTING_STATE_H_
+#define CHROME_BROWSER_METRICS_METRICS_REPORTING_STATE_H_
-#include <jni.h>
+// Tries to set crash stats upload consent to |enabled|. Regardless of success,
+// if crash stats uploading is enabled, starts the MetricsService; otherwise
+// stops it.
+// Returns whether crash stats uploading is enabled.
+// TODO(tfarina): This method is pretty confusing. Clean this up and rename it
+// to something that makes more sense.
+bool ResolveMetricsReportingEnabled(bool enabled);
-namespace android_webview {
-
-bool RegisterCookieManager(JNIEnv* env);
-
-} // namespace android_webview
-
-#endif // ANDROID_WEBVIEW_NATIVE_COOKIE_MANAGER_H_
+#endif // CHROME_BROWSER_METRICS_METRICS_REPORTING_STATE_H_
« no previous file with comments | « chrome/browser/chromeos/settings/device_settings_provider.cc ('k') | chrome/browser/metrics/metrics_reporting_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698