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

Side by Side Diff: chromecast/metrics/cast_metrics_service_client.cc

Issue 510483004: Chromecast buildfix: MetricsService has moved to metrics namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromecast/metrics/cast_metrics_service_client.h" 5 #include "chromecast/metrics/cast_metrics_service_client.h"
6 6
7 #include "base/i18n/rtl.h" 7 #include "base/i18n/rtl.h"
8 #include "chromecast/common/chromecast_config.h" 8 #include "chromecast/common/chromecast_config.h"
9 #include "chromecast/metrics/platform_metrics_providers.h" 9 #include "chromecast/metrics/platform_metrics_providers.h"
10 #include "components/metrics/metrics_provider.h" 10 #include "components/metrics/metrics_provider.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 CastMetricsServiceClient::CastMetricsServiceClient( 88 CastMetricsServiceClient::CastMetricsServiceClient(
89 PrefService* pref_service, 89 PrefService* pref_service,
90 net::URLRequestContextGetter* request_context) 90 net::URLRequestContextGetter* request_context)
91 : metrics_state_manager_(::metrics::MetricsStateManager::Create( 91 : metrics_state_manager_(::metrics::MetricsStateManager::Create(
92 pref_service, 92 pref_service,
93 base::Bind(&CastMetricsServiceClient::IsReportingEnabled, 93 base::Bind(&CastMetricsServiceClient::IsReportingEnabled,
94 base::Unretained(this)), 94 base::Unretained(this)),
95 ::metrics::MetricsStateManager::StoreClientInfoCallback(), 95 ::metrics::MetricsStateManager::StoreClientInfoCallback(),
96 ::metrics::MetricsStateManager::LoadClientInfoCallback())), 96 ::metrics::MetricsStateManager::LoadClientInfoCallback())),
97 metrics_service_(new MetricsService( 97 metrics_service_(new ::metrics::MetricsService(
98 metrics_state_manager_.get(), 98 metrics_state_manager_.get(),
99 this, 99 this,
100 ChromecastConfig::GetInstance()->pref_service())), 100 ChromecastConfig::GetInstance()->pref_service())),
101 request_context_(request_context) { 101 request_context_(request_context) {
102 // Always create a client id as it may also be used by crash reporting, 102 // Always create a client id as it may also be used by crash reporting,
103 // (indirectly) included in feedback, and can be queried during setup. 103 // (indirectly) included in feedback, and can be queried during setup.
104 // For UMA and crash reporting, associated opt-in settings will control 104 // For UMA and crash reporting, associated opt-in settings will control
105 // sending reports as directed by the user. 105 // sending reports as directed by the user.
106 // For Setup (which also communicates the user's opt-in preferences), 106 // For Setup (which also communicates the user's opt-in preferences),
107 // report the client-id and expect that setup will handle the current opt-in 107 // report the client-id and expect that setup will handle the current opt-in
(...skipping 12 matching lines...) Expand all
120 120
121 CastMetricsServiceClient::~CastMetricsServiceClient() { 121 CastMetricsServiceClient::~CastMetricsServiceClient() {
122 } 122 }
123 123
124 bool CastMetricsServiceClient::IsReportingEnabled() { 124 bool CastMetricsServiceClient::IsReportingEnabled() {
125 return PlatformIsReportingEnabled(); 125 return PlatformIsReportingEnabled();
126 } 126 }
127 127
128 } // namespace metrics 128 } // namespace metrics
129 } // namespace chromecast 129 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/metrics/cast_metrics_service_client.h ('k') | chromecast/metrics/platform_metrics_providers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698