summaryrefslogtreecommitdiff
path: root/chromium/media/mojo/services/watch_time_recorder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/media/mojo/services/watch_time_recorder.cc')
-rw-r--r--chromium/media/mojo/services/watch_time_recorder.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/chromium/media/mojo/services/watch_time_recorder.cc b/chromium/media/mojo/services/watch_time_recorder.cc
index d5760eafac1..e857627ff70 100644
--- a/chromium/media/mojo/services/watch_time_recorder.cc
+++ b/chromium/media/mojo/services/watch_time_recorder.cc
@@ -169,9 +169,14 @@ void WatchTimeRecorder::RecordUkmPlaybackData() {
}
const int32_t source_id = ukm_recorder->GetNewSourceID();
- ukm_recorder->UpdateSourceURL(source_id, properties_->origin.GetURL());
+
+ // TODO(crbug.com/787209): Stop getting origin from the renderer.
+ ukm_recorder->UpdateSourceURL(source_id,
+ properties_->untrusted_top_origin.GetURL());
ukm::builders::Media_BasicPlayback builder(source_id);
+ builder.SetIsTopFrame(properties_->is_top_frame);
+
bool recorded_all_metric = false;
for (auto& kv : aggregate_watch_time_info_) {
if (kv.first == WatchTimeKey::kAudioAll ||