customtabs: Handle the referrer with prerendering.
commit334126809fa7f84680a1569c7b87ec61ddcc636b
authorlizeb <lizeb@chromium.org>
Tue, 23 Jun 2015 23:07:01 +0000 (23 16:07 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 23 Jun 2015 23:07:24 +0000 (23 23:07 +0000)
tree2cc6f0d1441742f7c4ffb96cb12f6cb84c4832c3
parent81ffd1e4d91d20ee53bd002fccb8e4b55843a0a7
customtabs: Handle the referrer with prerendering.

This adds the same handling of the referrer as in the rest of Chrome,
for prerendering. If the referrer provided to mayLaunchUrl() doesn't
match the one provided by the Intent for the real navigation, then the
prerender is dropped.

BUG=501617

Review URL: https://codereview.chromium.org/1199103002

Cr-Commit-Position: refs/heads/master@{#335796}
chrome/android/java_staging/src/org/chromium/chrome/browser/customtabs/CustomTab.java
chrome/android/java_staging/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java
chrome/android/java_staging/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java