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_ |