Chromium Code Reviews
DescriptionRefactor the Java AppBannerManager to be owned by native code.
Currently, the native AppBannerManagerAndroid is owned by its Java
counterpart on Android. The Java side is necessary for querying Android
libraries, but the ownership complicates the banner system, which is now
cross-platform.
This CL swaps the ownership semantics, so the native code owns, creates,
and destroys the Android-side code. The AppBannerManagerAndroid is now
a content::WebContentsUserData, and one is created per WebContents. Upon
creation, a Java-side AppBannerManager is instantiated and accessible from
Java using a WebContents object.
The Android code now mirrors the desktop code more closely, consolidating
the C++ layer as the controller for app banners. This CL also prepares for an
upcoming refactor of the banner system, which will separate banner-specific
requirements from general data fetching. The refactor will reduce code
duplication throughout the banner, add to homescreen, and WebAPK systems.
BUG=580392
Committed: https://crrev.com/1912ec8be288682278ba26108f0266468f9f9ea8
Cr-Commit-Position: refs/heads/master@{#405044}
Patch Set 1 #
Total comments: 12
Patch Set 2 : Addressing reviewer comments #
Total comments: 6
Patch Set 3 : Addressing reviewer comments #
Total comments: 1
Messages
Total messages: 42 (21 generated)
|