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

Unified Diff: extensions/shell/browser/shell_extensions_api_client.cc

Issue 2331343012: Create MetricsPrivateDelegate for metricsPrivate behavior (Closed)
Patch Set: 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/shell/browser/shell_extensions_api_client.cc
diff --git a/extensions/shell/browser/shell_extensions_api_client.cc b/extensions/shell/browser/shell_extensions_api_client.cc
index 527b883ab7f4d46f60cee33764177da457e0261d..6816bc468d3e4073acc65b8cd57365c569b8ccd9 100644
--- a/extensions/shell/browser/shell_extensions_api_client.cc
+++ b/extensions/shell/browser/shell_extensions_api_client.cc
@@ -4,6 +4,8 @@
#include "extensions/shell/browser/shell_extensions_api_client.h"
+#include "base/memory/ptr_util.h"
+#include "extensions/shell/browser/api/metrics_private/shell_metrics_private_delegate.h"
#include "extensions/shell/browser/shell_app_view_guest_delegate.h"
#include "extensions/shell/browser/shell_extension_web_contents_observer.h"
@@ -22,4 +24,9 @@ AppViewGuestDelegate* ShellExtensionsAPIClient::CreateAppViewGuestDelegate()
return new ShellAppViewGuestDelegate();
}
+std::unique_ptr<MetricsPrivateDelegate>
+ShellExtensionsAPIClient::CreateMetricsPrivateDelegate() const {
+ return base::MakeUnique<ShellMetricsPrivateDelegate>();
+}
+
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698