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

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

Issue 2614533002: Add server_url and mime_type params to CreateUploader. (Closed)
Patch Set: Missing Include Created 3 years, 11 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 "components/metrics/test_metrics_service_client.h" 5 #include "components/metrics/test_metrics_service_client.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "components/metrics/metrics_log_uploader.h" 8 #include "components/metrics/metrics_log_uploader.h"
9 #include "components/metrics/proto/chrome_user_metrics_extension.pb.h" 9 #include "components/metrics/proto/chrome_user_metrics_extension.pb.h"
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 const base::Closure& done_callback) { 59 const base::Closure& done_callback) {
60 done_callback.Run(); 60 done_callback.Run();
61 } 61 }
62 62
63 void TestMetricsServiceClient::CollectFinalMetricsForLog( 63 void TestMetricsServiceClient::CollectFinalMetricsForLog(
64 const base::Closure& done_callback) { 64 const base::Closure& done_callback) {
65 done_callback.Run(); 65 done_callback.Run();
66 } 66 }
67 67
68 std::unique_ptr<MetricsLogUploader> TestMetricsServiceClient::CreateUploader( 68 std::unique_ptr<MetricsLogUploader> TestMetricsServiceClient::CreateUploader(
69 const std::string& server_url,
70 const std::string& mime_type,
69 const base::Callback<void(int)>& on_upload_complete) { 71 const base::Callback<void(int)>& on_upload_complete) {
70 return std::unique_ptr<MetricsLogUploader>(); 72 return std::unique_ptr<MetricsLogUploader>();
71 } 73 }
72 74
73 base::TimeDelta TestMetricsServiceClient::GetStandardUploadInterval() { 75 base::TimeDelta TestMetricsServiceClient::GetStandardUploadInterval() {
74 return base::TimeDelta::FromMinutes(5); 76 return base::TimeDelta::FromMinutes(5);
75 } 77 }
76 78
77 bool TestMetricsServiceClient::IsReportingPolicyManaged() { 79 bool TestMetricsServiceClient::IsReportingPolicyManaged() {
78 return reporting_is_managed_; 80 return reporting_is_managed_;
79 } 81 }
80 82
81 EnableMetricsDefault 83 EnableMetricsDefault
82 TestMetricsServiceClient::GetMetricsReportingDefaultState() { 84 TestMetricsServiceClient::GetMetricsReportingDefaultState() {
83 return enable_default_; 85 return enable_default_;
84 } 86 }
85 87
86 } // namespace metrics 88 } // namespace metrics
OLDNEW
« no previous file with comments | « components/metrics/test_metrics_service_client.h ('k') | ios/chrome/browser/metrics/ios_chrome_metrics_service_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698