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

Issue 2671653002: Webapps: Clear AppBannerManagerAndroid::native_app_data_ prior to native app check (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 AppBannerManagerAndroid::native_app_data_ prior to native app check This CL fixes a bug where 1) Navigating to a web page which has a Web Manifest with "related_applications" specified. 2) Navigating to a web page with a web app compatible Web Manifest would show a native app banner for the second page. Whether |AppBannerManagerAndroid::native_app_data_| is set is used to determine which type of banner to create (native app or webapp). Previously |AppBannerManagerAndroid::native_app_data_| was only cleared if there was a native app associated with the Web Manifest. This CL clears |AppBannerManagerAndroid::native_app_data_| prior to checking whether there is a native app associated with the Web Manifest. BUG=687024 Review-Url: https://codereview.chromium.org/2671653002 Cr-Commit-Position: refs/heads/master@{#448218} Committed: https://chromium.googlesource.com/chromium/src/+/de6f8b587176d94643869d0f28aee52b92ad00b8

Patch Set 1 #

Total comments: 1

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

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

Total comments: 6

Patch Set 4 : Merge branch 'master' into install_banner #

Patch Set 5 : Merge branch 'master' into install_banner #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -4 lines) Patch
M chrome/browser/android/banners/app_banner_manager_android.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/banners/app_banner_manager_android.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/banners/app_banner_manager.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/banners/app_banner_manager.cc View 1 2 3 4 3 chunks +9 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
pkotwicz
mgiuca@ can you please take a look? The reset code should likely be in a ...
3 years, 10 months ago (2017-02-02 04:54:53 UTC) #3
Matt Giuca
Err, I don't know this code at all (I just reported the bug). You should ...
3 years, 10 months ago (2017-02-02 05:43:38 UTC) #5
dominickn
Not sure why this wasn't sent to me first? https://codereview.chromium.org/2671653002/diff/1/chrome/browser/android/banners/app_banner_manager_android.cc File chrome/browser/android/banners/app_banner_manager_android.cc (right): https://codereview.chromium.org/2671653002/diff/1/chrome/browser/android/banners/app_banner_manager_android.cc#newcode161 chrome/browser/android/banners/app_banner_manager_android.cc:161: ...
3 years, 10 months ago (2017-02-02 06:53:38 UTC) #7
Matt Giuca
On 2017/02/02 06:53:38, dominickn wrote: > Not sure why this wasn't sent to me first? ...
3 years, 10 months ago (2017-02-02 07:22:27 UTC) #8
pkotwicz
Dominick, can you please take another look? I also reset |page_requested_prompt_| because it might not ...
3 years, 10 months ago (2017-02-06 01:08:51 UTC) #10
dominickn
https://codereview.chromium.org/2671653002/diff/60001/chrome/browser/banners/app_banner_manager.cc File chrome/browser/banners/app_banner_manager.cc (right): https://codereview.chromium.org/2671653002/diff/60001/chrome/browser/banners/app_banner_manager.cc#newcode308 chrome/browser/banners/app_banner_manager.cc:308: if (was_canceled_by_page_ && !page_requested_prompt_) { ResetData() should not be ...
3 years, 10 months ago (2017-02-06 02:16:53 UTC) #11
pkotwicz
Dominick, can you please take another look? https://codereview.chromium.org/2671653002/diff/60001/chrome/browser/banners/app_banner_manager.cc File chrome/browser/banners/app_banner_manager.cc (right): https://codereview.chromium.org/2671653002/diff/60001/chrome/browser/banners/app_banner_manager.cc#newcode308 chrome/browser/banners/app_banner_manager.cc:308: if (was_canceled_by_page_ ...
3 years, 10 months ago (2017-02-06 03:00:11 UTC) #12
dominickn
lgtm
3 years, 10 months ago (2017-02-06 03:05:51 UTC) #13
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/2671653002/100001
3 years, 10 months ago (2017-02-06 03:13:24 UTC) #15
commit-bot: I haz the power
3 years, 10 months ago (2017-02-06 07:04:09 UTC) #18
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/de6f8b587176d94643869d0f28ae...

Powered by Google App Engine
This is Rietveld 408576698