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

Issue 2969163002: Remove AppBannerManager::event_request_id(). (Closed)

Created:
3 years, 5 months ago by dominickn
Modified:
3 years, 5 months ago
Reviewers:
benwells
CC:
chromium-reviews, dominickn+watch_chromium.org, pkotwicz+watch_chromium.org, zpeng+watch_chromium.org, agrieve+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove AppBannerManager::event_request_id(). This was previously used to ensure we did not get a resolution to the beforeinstallpromptevent that didn't match the current request. However, AppBannerManager wipes its weak pointers when the current request finishes, meaning that event_request_id is unneccessary. BUG=728022 Review-Url: https://codereview.chromium.org/2969163002 Cr-Commit-Position: refs/heads/master@{#484820} Committed: https://chromium.googlesource.com/chromium/src/+/c5bed25edfa875b182516849e1d36b64bce464e9

Patch Set 1 #

Patch Set 2 : DCHECK -> conditional #

Total comments: 4

Patch Set 3 : Comments #

Total comments: 2

Patch Set 4 : Refactor into method #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -74 lines) Patch
M chrome/browser/android/banners/app_banner_infobar_delegate_android.h View 5 chunks +2 lines, -7 lines 0 comments Download
M chrome/browser/android/banners/app_banner_infobar_delegate_android.cc View 8 chunks +6 lines, -13 lines 0 comments Download
M chrome/browser/android/banners/app_banner_manager_android.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/android/webapps/add_to_homescreen_manager.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/banners/app_banner_infobar_delegate_desktop.h View 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/banners/app_banner_infobar_delegate_desktop.cc View 2 chunks +5 lines, -9 lines 0 comments Download
M chrome/browser/banners/app_banner_manager.h View 1 2 3 4 chunks +7 lines, -11 lines 0 comments Download
M chrome/browser/banners/app_banner_manager.cc View 1 2 3 7 chunks +15 lines, -22 lines 0 comments Download
M chrome/browser/banners/app_banner_manager_desktop.cc View 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 29 (22 generated)
dominickn
PTAL. thanks!
3 years, 5 months ago (2017-07-06 01:13:11 UTC) #6
benwells
https://codereview.chromium.org/2969163002/diff/20001/chrome/browser/banners/app_banner_manager.cc File chrome/browser/banners/app_banner_manager.cc (right): https://codereview.chromium.org/2969163002/diff/20001/chrome/browser/banners/app_banner_manager.cc#newcode67 chrome/browser/banners/app_banner_manager.cc:67: weak_factory_.InvalidateWeakPtrs(); Here we just invalidate weak pointers, but don't ...
3 years, 5 months ago (2017-07-06 05:00:35 UTC) #12
dominickn
Thanks! https://codereview.chromium.org/2969163002/diff/20001/chrome/browser/banners/app_banner_manager.cc File chrome/browser/banners/app_banner_manager.cc (right): https://codereview.chromium.org/2969163002/diff/20001/chrome/browser/banners/app_banner_manager.cc#newcode67 chrome/browser/banners/app_banner_manager.cc:67: weak_factory_.InvalidateWeakPtrs(); On 2017/07/06 05:00:35, benwells wrote: > Here ...
3 years, 5 months ago (2017-07-06 05:36:08 UTC) #13
benwells
lgtm with a nit. https://codereview.chromium.org/2969163002/diff/40001/chrome/browser/banners/app_banner_manager.cc File chrome/browser/banners/app_banner_manager.cc (right): https://codereview.chromium.org/2969163002/diff/40001/chrome/browser/banners/app_banner_manager.cc#newcode67 chrome/browser/banners/app_banner_manager.cc:67: weak_factory_.InvalidateWeakPtrs(); Nit: can you factor ...
3 years, 5 months ago (2017-07-06 07:22:40 UTC) #14
dominickn
Thanks! https://codereview.chromium.org/2969163002/diff/40001/chrome/browser/banners/app_banner_manager.cc File chrome/browser/banners/app_banner_manager.cc (right): https://codereview.chromium.org/2969163002/diff/40001/chrome/browser/banners/app_banner_manager.cc#newcode67 chrome/browser/banners/app_banner_manager.cc:67: weak_factory_.InvalidateWeakPtrs(); On 2017/07/06 07:22:39, benwells wrote: > Nit: ...
3 years, 5 months ago (2017-07-07 00:35:40 UTC) #17
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/2969163002/60001
3 years, 5 months ago (2017-07-07 03:37:09 UTC) #26
commit-bot: I haz the power
3 years, 5 months ago (2017-07-07 03:43:09 UTC) #29
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/c5bed25edfa875b182516849e1d3...

Powered by Google App Engine
This is Rietveld 408576698