[HomepagePromo] Integrate ImpressionTracker into PromoCard component
This work involves: 1. Moving ImpressionTracker from //chrome/metrics to //component/browser_ui as it could be beneficial for widgets that wants integrate tracking impression within. 2. Add another API for ImpressionTracker to adjust the impression threshold with a ratio, rather than the default 2/3 if pixel level threshold is not set; 3. Track impression for the primary button for HomepagePromo with ratio as 75%. Bug: 1068831 Change-Id: Ia7366cfa4b7d53dcea03d2b9143c59203f604302 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2199360 Commit-Queue: Wenyu Fu <wenyufu@chromium.org> Reviewed-by:Theresa <twellington@chromium.org> Cr-Commit-Position: refs/heads/master@{#768878}
Showing
Please register or sign in to comment