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

Unified Diff: extensions/browser/api/extensions_api_client.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: extensions/browser/api/extensions_api_client.h
diff --git a/extensions/browser/api/extensions_api_client.h b/extensions/browser/api/extensions_api_client.h
index 126b6e0f86f40298580195067ae17a9a2d6bcd1b..89362a575525db81af5ed09a495071ea540a5660 100644
--- a/extensions/browser/api/extensions_api_client.h
+++ b/extensions/browser/api/extensions_api_client.h
@@ -36,6 +36,7 @@ class DevicePermissionsPrompt;
class ExtensionOptionsGuest;
class ExtensionOptionsGuestDelegate;
class ManagementAPIDelegate;
+class MetricsPrivateDelegate;
class MimeHandlerViewGuest;
class MimeHandlerViewGuestDelegate;
class RulesCacheDelegate;
@@ -127,6 +128,11 @@ class ExtensionsAPIClient {
// Creates a delegate for handling the management extension api.
virtual ManagementAPIDelegate* CreateManagementAPIDelegate() const;
+ // Returns a delegate for MetricsPrivateAPI behavior dependent on the
+ // embedder. TODO(michaelpg): Consolidate with embedder-dependent interfaces
+ // in //components/metrics as app_shell support for metrics is completed.
+ virtual MetricsPrivateDelegate* GetMetricsPrivateDelegate();
+
// NOTE: If this interface gains too many methods (perhaps more than 20) it
// should be split into one interface per API.
};

Powered by Google App Engine
This is Rietveld 408576698