Pass referrer information to the store for native app banners.
commitb5b87ccc3a47a4e28d91dad7eaa5701f5b488311
authordominickn <dominickn@chromium.org>
Tue, 11 Aug 2015 01:03:12 +0000 (10 18:03 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 11 Aug 2015 01:03:44 +0000 (11 01:03 +0000)
tree9f0c752240efe966e49fe74dd43646221f4f6975
parent7d24216ef374c5655b501882f6ebe6eb695ec687
Pass referrer information to the store for native app banners.

The related application URL is now parsed if it is present in the manifest.
The id is extracted, and compared against any id specified in the manifest,
with an error triggered if they do not match. Any referrer information from
the URL is also extracted, and passed through to the Play Store.

The old AppDetailsDelegate method signature (sans referrer parameter)
is also removed.

BUG=503226

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

Cr-Commit-Position: refs/heads/master@{#342761}
chrome/android/java/src/org/chromium/chrome/browser/banners/AppBannerManager.java
chrome/android/java/src/org/chromium/chrome/browser/banners/AppDetailsDelegate.java
chrome/android/javatests/src/org/chromium/chrome/browser/banners/AppBannerManagerTest.java
chrome/browser/android/banners/app_banner_manager_android.cc
chrome/browser/android/banners/app_banner_manager_android.h
chrome/browser/banners/app_banner_debug_log.cc
chrome/browser/banners/app_banner_debug_log.h