Fix PopupBlockerBrowserTest tests for initiator origins.

As of https://crrev.com/617708 the expectation is that all renderer
initiated navigations must specify the origin of the document that
started the navigation.

This CL fixes PopupBlockerBrowserTest to pass when DCHECK for initiator
origin on renderer-initiated navigations is enabled. It also changes
the parameter type for CanCreateWindow from GURL to url::Origin.

Bug: 882053
Change-Id: Id75c955885bc3c3c4c0e8e5c874ae9a24bcbc8ee
Reviewed-on: https://chromium-review.googlesource.com/c/1395066
Reviewed-by: Bo <boliu@chromium.org>
Reviewed-by: Luke Halliwell <halliwell@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Commit-Queue: Nasko Oskov <nasko@chromium.org>
Cr-Commit-Position: refs/heads/master@{#620004}
14 files changed