Popup metrics: add popup opener specific metrics

This patch adds two new metrics.
1. A breakout metric of our "VisibleTimeAfterCrossOriginRedirect" metric,
   which measures the visible time for tabs that also have opened a popup
   before doing the redirect.
2. The amount of time between the popup -> redirect.

These metrics will help us evaluate how valuable tab-unders are to users.

This patch also adds some infrastructure for noting opener <-> popup
relationships between the popup_opener_tab_helper and the popup_tracker.
This information is not used all that much in this patch, but will be
critical in future patches if we want to intervene on tab-unders.

This added infrastructure caught a bug where we were considering
WebContents that had no opener to be a popup. This is amended and tested
in this patch, and the PopupTracker metric is versioned.

Bug: 661629
Change-Id: I4109333d3f689a03de3b4aaa6f5310c8a861fb09
Reviewed-on: https://chromium-review.googlesource.com/690297
Reviewed-by: Jochen Eisinger <jochen@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Steven Holte <holte@chromium.org>
Commit-Queue: Charlie Harrison <csharrison@chromium.org>
Cr-Commit-Position: refs/heads/master@{#505585}
10 files changed