Commit adcf9bd4 authored by Noel Gordon's avatar Noel Gordon Committed by Commit Bot

[quickview] Address metrics TODO: record this UMA when idle

Since rendering work here is way more important, idle delay the UMA to
a better place: when the browser is idle.

Bug: 965370
Change-Id: Idf14450312b07a751901f3a3b0ea99f988890c5b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1662106Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
Reviewed-by: default avatarAlex Danilo <adanilo@chromium.org>
Commit-Queue: Noel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#669590}
parent 84daed70
......@@ -243,8 +243,9 @@ class QuickViewController {
const entry = this.entries_[0];
this.quickViewModel_.setSelectedEntry(entry);
// TODO(noel): Record UMA _after_ the rendering work below is done?
this.quickViewUma_.onEntryChanged(entry);
requestIdleCallback(() => {
this.quickViewUma_.onEntryChanged(entry);
});
return Promise
.all([
......
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