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

Side by Side Diff: ios/chrome/browser/metrics/ios_chrome_metrics_service_client.cc

Issue 2388163002: [Sync] Move //components/sync to the syncer namespace, take 2. (Closed)
Patch Set: Rebase. Created 4 years, 2 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ios/chrome/browser/metrics/ios_chrome_metrics_service_client.h" 5 #include "ios/chrome/browser/metrics/ios_chrome_metrics_service_client.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 std::unique_ptr<metrics::MetricsProvider>( 226 std::unique_ptr<metrics::MetricsProvider>(
227 SigninStatusMetricsProvider::CreateInstance(base::WrapUnique( 227 SigninStatusMetricsProvider::CreateInstance(base::WrapUnique(
228 new IOSChromeSigninStatusMetricsProviderDelegate)))); 228 new IOSChromeSigninStatusMetricsProviderDelegate))));
229 229
230 metrics_service_->RegisterMetricsProvider( 230 metrics_service_->RegisterMetricsProvider(
231 std::unique_ptr<metrics::MetricsProvider>( 231 std::unique_ptr<metrics::MetricsProvider>(
232 new MobileSessionShutdownMetricsProvider(metrics_service_.get()))); 232 new MobileSessionShutdownMetricsProvider(metrics_service_.get())));
233 233
234 metrics_service_->RegisterMetricsProvider( 234 metrics_service_->RegisterMetricsProvider(
235 std::unique_ptr<metrics::MetricsProvider>( 235 std::unique_ptr<metrics::MetricsProvider>(
236 new sync_driver::DeviceCountMetricsProvider( 236 new syncer::DeviceCountMetricsProvider(
237 base::Bind(&IOSChromeSyncClient::GetDeviceInfoTrackers)))); 237 base::Bind(&IOSChromeSyncClient::GetDeviceInfoTrackers))));
238 238
239 metrics_service_->RegisterMetricsProvider( 239 metrics_service_->RegisterMetricsProvider(
240 std::unique_ptr<metrics::MetricsProvider>( 240 std::unique_ptr<metrics::MetricsProvider>(
241 new translate::TranslateRankerMetricsProvider())); 241 new translate::TranslateRankerMetricsProvider()));
242 } 242 }
243 243
244 void IOSChromeMetricsServiceClient::OnInitTaskGotDriveMetrics() { 244 void IOSChromeMetricsServiceClient::OnInitTaskGotDriveMetrics() {
245 finished_init_task_callback_.Run(); 245 finished_init_task_callback_.Run();
246 } 246 }
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 311
312 void IOSChromeMetricsServiceClient::OnURLOpenedFromOmnibox(OmniboxLog* log) { 312 void IOSChromeMetricsServiceClient::OnURLOpenedFromOmnibox(OmniboxLog* log) {
313 metrics_service_->OnApplicationNotIdle(); 313 metrics_service_->OnApplicationNotIdle();
314 } 314 }
315 315
316 metrics::EnableMetricsDefault 316 metrics::EnableMetricsDefault
317 IOSChromeMetricsServiceClient::GetMetricsReportingDefaultState() { 317 IOSChromeMetricsServiceClient::GetMetricsReportingDefaultState() {
318 return metrics::GetMetricsReportingDefaultState( 318 return metrics::GetMetricsReportingDefaultState(
319 GetApplicationContext()->GetLocalState()); 319 GetApplicationContext()->GetLocalState());
320 } 320 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698