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

Unified Diff: chrome/browser/extensions/api/metrics_private/chrome_metrics_private_delegate.h

Issue 2331343012: Create MetricsPrivateDelegate for metricsPrivate behavior (Closed)
Patch Set: ExtensionsAPIClient owns MetricsPrivateDelegate instance Created 4 years, 3 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/extensions/api/metrics_private/chrome_metrics_private_delegate.h
diff --git a/chrome/browser/extensions/api/metrics_private/chrome_metrics_private_delegate.h b/chrome/browser/extensions/api/metrics_private/chrome_metrics_private_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..a3183a4997f15b066875eee00aa2bba73aaaf66b
--- /dev/null
+++ b/chrome/browser/extensions/api/metrics_private/chrome_metrics_private_delegate.h
@@ -0,0 +1,26 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_API_METRICS_PRIVATE_CHROME_METRICS_PRIVATE_DELEGATE_H_
+#define CHROME_BROWSER_EXTENSIONS_API_METRICS_PRIVATE_CHROME_METRICS_PRIVATE_DELEGATE_H_
+
+#include "base/macros.h"
+#include "extensions/browser/api/metrics_private/metrics_private_delegate.h"
+
+namespace extensions {
+
+class ChromeMetricsPrivateDelegate : public MetricsPrivateDelegate {
+ public:
+ ChromeMetricsPrivateDelegate() {}
+ ~ChromeMetricsPrivateDelegate() override {}
+
+ bool IsCrashReportingEnabled() override;
Ilya Sherman 2016/09/23 22:39:59 I'm honestly somewhat uncomfortable allowing all c
michaelpg 2016/09/23 23:48:15 Does this CL change that, from an API standpoint?
Ilya Sherman 2016/09/27 01:33:13 This CL doesn't change the status quo dramatically
Rahul Chaturvedi 2016/09/27 18:41:57 I am a bit confused here. This is a private API. A
Ilya Sherman 2016/09/27 20:58:29 A security review has nothing to do with the issue
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ChromeMetricsPrivateDelegate);
+};
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_METRICS_PRIVATE_CHROME_METRICS_PRIVATE_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698