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

Unified Diff: chromecast/base/metrics/cast_metrics_helper.cc

Issue 972393002: [Chromecast] Don't log time to first paint if no app has been set. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/base/metrics/cast_metrics_helper.cc
diff --git a/chromecast/base/metrics/cast_metrics_helper.cc b/chromecast/base/metrics/cast_metrics_helper.cc
index 0e0c889894a3f398328ea69ae0b17aabb531eee9..85cdfe8931e8f10a0fdfb920869b7d340a9220bf 100644
--- a/chromecast/base/metrics/cast_metrics_helper.cc
+++ b/chromecast/base/metrics/cast_metrics_helper.cc
@@ -149,6 +149,8 @@ void CastMetricsHelper::LogMediaPause() {
void CastMetricsHelper::LogTimeToFirstPaint() {
MAKE_SURE_THREAD(LogTimeToFirstPaint);
+ if (app_id_.empty())
+ return;
base::TimeDelta launch_time = base::TimeTicks::Now() - app_start_time_;
const std::string uma_name(GetMetricsNameWithAppName("Startup",
"TimeToFirstPaint"));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698