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

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

Issue 2615753002: Remove time ticks metrics and MetricServiceClient::OnLogUploadComplete (Closed)
Patch Set: Rebase 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 "chromecast/browser/metrics/cast_metrics_service_client.h" 5 #include "chromecast/browser/metrics/cast_metrics_service_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/guid.h" 8 #include "base/guid.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 const bool is_official_build = 212 const bool is_official_build =
213 build_number > 0 && 213 build_number > 0 &&
214 !CAST_IS_DEBUG_BUILD() && 214 !CAST_IS_DEBUG_BUILD() &&
215 channel != ::metrics::SystemProfileProto::CHANNEL_UNKNOWN; 215 channel != ::metrics::SystemProfileProto::CHANNEL_UNKNOWN;
216 if (!is_official_build) 216 if (!is_official_build)
217 version_string.append("-devel"); 217 version_string.append("-devel");
218 218
219 return version_string; 219 return version_string;
220 } 220 }
221 221
222 void CastMetricsServiceClient::OnLogUploadComplete() {
223 }
224
225 void CastMetricsServiceClient::InitializeSystemProfileMetrics( 222 void CastMetricsServiceClient::InitializeSystemProfileMetrics(
226 const base::Closure& done_callback) { 223 const base::Closure& done_callback) {
227 done_callback.Run(); 224 done_callback.Run();
228 } 225 }
229 226
230 void CastMetricsServiceClient::CollectFinalMetricsForLog( 227 void CastMetricsServiceClient::CollectFinalMetricsForLog(
231 const base::Closure& done_callback) { 228 const base::Closure& done_callback) {
232 done_callback.Run(); 229 done_callback.Run();
233 } 230 }
234 231
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 external_metrics_->StopAndDestroy(); 401 external_metrics_->StopAndDestroy();
405 external_metrics_ = nullptr; 402 external_metrics_ = nullptr;
406 platform_metrics_->StopAndDestroy(); 403 platform_metrics_->StopAndDestroy();
407 platform_metrics_ = nullptr; 404 platform_metrics_ = nullptr;
408 #endif // defined(OS_LINUX) 405 #endif // defined(OS_LINUX)
409 metrics_service_->Stop(); 406 metrics_service_->Stop();
410 } 407 }
411 408
412 } // namespace metrics 409 } // namespace metrics
413 } // namespace chromecast 410 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/browser/metrics/cast_metrics_service_client.h ('k') | components/metrics/metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698