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

Unified Diff: chromecast/shell/browser/cast_browser_main_parts.cc

Issue 482813004: Adds CastMetricsServiceClient to Chromecast shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address asvitkine's comments Created 6 years, 4 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
« no previous file with comments | « chromecast/shell/browser/cast_browser_main_parts.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/shell/browser/cast_browser_main_parts.cc
diff --git a/chromecast/shell/browser/cast_browser_main_parts.cc b/chromecast/shell/browser/cast_browser_main_parts.cc
index 72c75440b4f433399427d09fdce7c3de7e4bdddf..8b98918dc9ef01baeeee2c9e3fd53880fbdb50b8 100644
--- a/chromecast/shell/browser/cast_browser_main_parts.cc
+++ b/chromecast/shell/browser/cast_browser_main_parts.cc
@@ -7,6 +7,7 @@
#include "base/command_line.h"
#include "base/prefs/pref_registry_simple.h"
#include "chromecast/common/chromecast_config.h"
+#include "chromecast/metrics/cast_metrics_service_client.h"
#include "chromecast/net/network_change_notifier_cast.h"
#include "chromecast/net/network_change_notifier_factory_cast.h"
#include "chromecast/service/cast_service.h"
@@ -74,6 +75,9 @@ void CastBrowserMainParts::PreMainMessageLoopRun() {
url_request_context_factory_->InitializeOnUIThread();
browser_context_.reset(new CastBrowserContext(url_request_context_factory_));
+ metrics_service_client_.reset(metrics::CastMetricsServiceClient::Create(
+ ChromecastConfig::GetInstance()->pref_service(),
+ browser_context_->GetRequestContext()));
dev_tools_.reset(new RemoteDebuggingServer());
InitializeWebUI();
@@ -92,6 +96,7 @@ void CastBrowserMainParts::PostMainMessageLoopRun() {
cast_service_.reset();
dev_tools_.reset();
+ metrics_service_client_.reset();
browser_context_.reset();
}
« no previous file with comments | « chromecast/shell/browser/cast_browser_main_parts.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698