Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Issue 921073002: [App banners] Break apart AppBannerManager and AppBannerInfoBarDelegate (Closed)

Created:
5 years, 10 months ago by gone
Modified:
5 years, 10 months ago
Reviewers:
Ted C
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[App banners] Break apart AppBannerManager and AppBannerInfoBarDelegate Moves a bunch of code from AppBannerManager into the new Java-side AppBannerInfoBarDelegate. This effectively makes it so that once an app banner is created by the AppBannerManager the AppBannerInfoBar is on its own for managing installation and blocking of the app it's promoting. Main changes include getting the WebContents and Tab from the infobar() itself rather than relying on the AppBannerManager to provide it. Further cleanup is required on the AppBannerManager to clean up the creation pipline. BUG=457414 Committed: https://crrev.com/c505bf51ad167592ea00ec51abc6eaa0399e318c Cr-Commit-Position: refs/heads/master@{#316345}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+385 lines, -362 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/banners/AppBannerManager.java View 7 chunks +0 lines, -102 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/banners/AppData.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/banners/InstallerDelegate.java View 1 chunk +1 line, -1 line 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/infobar/AppBannerInfoBarDelegate.java View 1 chunk +140 lines, -0 lines 0 comments Download
M chrome/browser/android/banners/app_banner_infobar_delegate.h View 3 chunks +41 lines, -34 lines 0 comments Download
M chrome/browser/android/banners/app_banner_infobar_delegate.cc View 1 3 chunks +182 lines, -22 lines 0 comments Download
M chrome/browser/android/banners/app_banner_manager.h View 6 chunks +1 line, -37 lines 0 comments Download
M chrome/browser/android/banners/app_banner_manager.cc View 6 chunks +11 lines, -163 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/android/infobars/app_banner_infobar.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/android/infobars/app_banner_infobar.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
gone
Moves code around, mainly.
5 years, 10 months ago (2015-02-13 03:06:12 UTC) #2
Ted C
lgtm https://codereview.chromium.org/921073002/diff/1/chrome/browser/android/banners/app_banner_infobar_delegate.cc File chrome/browser/android/banners/app_banner_infobar_delegate.cc (right): https://codereview.chromium.org/921073002/diff/1/chrome/browser/android/banners/app_banner_infobar_delegate.cc#newcode136 chrome/browser/android/banners/app_banner_infobar_delegate.cc:136: if (tab == nullptr) return true; goes on ...
5 years, 10 months ago (2015-02-14 00:06:48 UTC) #3
gone
https://chromiumcodereview.appspot.com/921073002/diff/1/chrome/browser/android/banners/app_banner_infobar_delegate.cc File chrome/browser/android/banners/app_banner_infobar_delegate.cc (right): https://chromiumcodereview.appspot.com/921073002/diff/1/chrome/browser/android/banners/app_banner_infobar_delegate.cc#newcode136 chrome/browser/android/banners/app_banner_infobar_delegate.cc:136: if (tab == nullptr) return true; On 2015/02/14 00:06:48, ...
5 years, 10 months ago (2015-02-14 00:16:01 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/921073002/20001
5 years, 10 months ago (2015-02-14 00:39:59 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 10 months ago (2015-02-14 00:58:23 UTC) #8
commit-bot: I haz the power
5 years, 10 months ago (2015-02-14 01:00:34 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c505bf51ad167592ea00ec51abc6eaa0399e318c
Cr-Commit-Position: refs/heads/master@{#316345}

Powered by Google App Engine
This is Rietveld 408576698