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

Side by Side Diff: components/metrics/test_metrics_service_client.cc

Issue 2708293002: Switch UKM service to properly mark upload data as UKM and not UMA. (Closed)
Patch Set: no switch default now requires a default value Created 3 years, 10 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
« no previous file with comments | « components/metrics/test_metrics_service_client.h ('k') | components/ukm/ukm_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "components/metrics/test_metrics_service_client.h" 5 #include "components/metrics/test_metrics_service_client.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "components/metrics/metrics_log_uploader.h" 10 #include "components/metrics/metrics_log_uploader.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 } 60 }
61 61
62 void TestMetricsServiceClient::CollectFinalMetricsForLog( 62 void TestMetricsServiceClient::CollectFinalMetricsForLog(
63 const base::Closure& done_callback) { 63 const base::Closure& done_callback) {
64 done_callback.Run(); 64 done_callback.Run();
65 } 65 }
66 66
67 std::unique_ptr<MetricsLogUploader> TestMetricsServiceClient::CreateUploader( 67 std::unique_ptr<MetricsLogUploader> TestMetricsServiceClient::CreateUploader(
68 const std::string& server_url, 68 const std::string& server_url,
69 const std::string& mime_type, 69 const std::string& mime_type,
70 MetricsLogUploader::MetricServiceType service_type,
70 const base::Callback<void(int)>& on_upload_complete) { 71 const base::Callback<void(int)>& on_upload_complete) {
71 uploader_ = 72 uploader_ = new TestMetricsLogUploader(server_url, mime_type, service_type,
72 new TestMetricsLogUploader(server_url, mime_type, on_upload_complete); 73 on_upload_complete);
73 return std::unique_ptr<MetricsLogUploader>(uploader_); 74 return std::unique_ptr<MetricsLogUploader>(uploader_);
74 } 75 }
75 76
76 base::TimeDelta TestMetricsServiceClient::GetStandardUploadInterval() { 77 base::TimeDelta TestMetricsServiceClient::GetStandardUploadInterval() {
77 return base::TimeDelta::FromMinutes(5); 78 return base::TimeDelta::FromMinutes(5);
78 } 79 }
79 80
80 bool TestMetricsServiceClient::IsReportingPolicyManaged() { 81 bool TestMetricsServiceClient::IsReportingPolicyManaged() {
81 return reporting_is_managed_; 82 return reporting_is_managed_;
82 } 83 }
83 84
84 EnableMetricsDefault 85 EnableMetricsDefault
85 TestMetricsServiceClient::GetMetricsReportingDefaultState() { 86 TestMetricsServiceClient::GetMetricsReportingDefaultState() {
86 return enable_default_; 87 return enable_default_;
87 } 88 }
88 89
89 } // namespace metrics 90 } // namespace metrics
OLDNEW
« no previous file with comments | « components/metrics/test_metrics_service_client.h ('k') | components/ukm/ukm_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698