Commit 9b418422 authored by derekjchow's avatar derekjchow Committed by Commit bot

[Chromecast] Don't log time to first paint if no app has been set.

BUG=internal b/19071054

Review URL: https://codereview.chromium.org/972393002

Cr-Commit-Position: refs/heads/master@{#318962}
parent 0bca9e95
...@@ -149,6 +149,8 @@ void CastMetricsHelper::LogMediaPause() { ...@@ -149,6 +149,8 @@ void CastMetricsHelper::LogMediaPause() {
void CastMetricsHelper::LogTimeToFirstPaint() { void CastMetricsHelper::LogTimeToFirstPaint() {
MAKE_SURE_THREAD(LogTimeToFirstPaint); MAKE_SURE_THREAD(LogTimeToFirstPaint);
if (app_id_.empty())
return;
base::TimeDelta launch_time = base::TimeTicks::Now() - app_start_time_; base::TimeDelta launch_time = base::TimeTicks::Now() - app_start_time_;
const std::string uma_name(GetMetricsNameWithAppName("Startup", const std::string uma_name(GetMetricsNameWithAppName("Startup",
"TimeToFirstPaint")); "TimeToFirstPaint"));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment