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

Issue 2677853002: [Webapps]: Clear AppBannerManager::page_requested_prompt_ at start of banner flow (Closed)

Created:
3 years, 10 months ago by pkotwicz
Modified:
3 years, 10 months ago
Reviewers:
dominickn
CC:
chromium-reviews, dominickn+watch_chromium.org, pkotwicz+watch_chromium.org, zpeng+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Webapps]: Clear AppBannerManager::page_requested_prompt_ at start of banner flow This CL fixes a bug where a web page is not capable of cancelling the app banner if the tab was previously navigated to a page which requested the banner in the beforeinstallprompt() JS handler. BUG=688902 TEST=AppBannerManagerBrowserTest.CancelBannerAfterPromptInHandler Review-Url: https://codereview.chromium.org/2677853002 Cr-Commit-Position: refs/heads/master@{#451689} Committed: https://chromium.googlesource.com/chromium/src/+/e082e1d1591776aff10d468bc7057dfa3e49abea

Patch Set 1 : Merge branch 'install_banner' into install_banner2 #

Total comments: 7

Patch Set 2 : Merge branch 'master' into install_banner2 #

Patch Set 3 : Merge branch 'master' into install_banner2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -36 lines) Patch
M chrome/browser/banners/app_banner_manager.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/banners/app_banner_manager_browsertest.cc View 1 2 6 chunks +98 lines, -33 lines 0 comments Download
M chrome/test/data/banners/cancel_test_page.html View 1 chunk +5 lines, -1 line 0 comments Download
A chrome/test/data/banners/manifest_different_start_url.json View 1 chunk +39 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
pkotwicz
Dominick, can you please take a look?
3 years, 10 months ago (2017-02-06 03:37:26 UTC) #4
dominickn
https://codereview.chromium.org/2677853002/diff/20001/chrome/browser/banners/app_banner_manager.cc File chrome/browser/banners/app_banner_manager.cc (right): https://codereview.chromium.org/2677853002/diff/20001/chrome/browser/banners/app_banner_manager.cc#newcode12 chrome/browser/banners/app_banner_manager.cc:12: #include "base/strings/string_number_conversions.h" #include "base/macros.h" for DISALLOW_COPY_AND_ASSIGN https://codereview.chromium.org/2677853002/diff/20001/chrome/browser/banners/app_banner_manager_browsertest.cc File chrome/browser/banners/app_banner_manager_browsertest.cc ...
3 years, 10 months ago (2017-02-06 05:22:01 UTC) #5
pkotwicz
Dominick, can you please take another look? https://codereview.chromium.org/2677853002/diff/20001/chrome/browser/banners/app_banner_manager_browsertest.cc File chrome/browser/banners/app_banner_manager_browsertest.cc (right): https://codereview.chromium.org/2677853002/diff/20001/chrome/browser/banners/app_banner_manager_browsertest.cc#newcode32 chrome/browser/banners/app_banner_manager_browsertest.cc:32: public content::WebContentsUserData<AppBannerManagerTest> ...
3 years, 10 months ago (2017-02-09 00:57:37 UTC) #6
dominickn
lgtm, but I still would prefer passing an AppBannerManager to RunBannerTest rather than making AppBannerManagerTest ...
3 years, 10 months ago (2017-02-09 04:49:04 UTC) #7
pkotwicz
Dominick, can you please take another look? I now pass the AppBannerManagerTest pointer to RunBannerTest()
3 years, 10 months ago (2017-02-20 04:48:43 UTC) #10
dominickn
Still lgtm. Thanks!
3 years, 10 months ago (2017-02-20 04:57:47 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2677853002/60001
3 years, 10 months ago (2017-02-21 01:21:14 UTC) #13
commit-bot: I haz the power
3 years, 10 months ago (2017-02-21 02:29:20 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/e082e1d1591776aff10d468bc705...

Powered by Google App Engine
This is Rietveld 408576698