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

Issue 2862933002: [autofill] Avoid duplicate instances of the SaveCardBubble. (Closed)

Created:
3 years, 7 months ago by Roger McFarlane (Chromium)
Modified:
3 years, 7 months ago
Reviewers:
Mathieu, csashi, Jared Saul
CC:
chromium-reviews, rouslan+autofill_chromium.org, rogerm+autofillwatch_chromium.org, sebsg+autofillwatch_chromium.org, mathp+autofillwatch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[autofill] Avoid duplicate instances of the SaveCardBubble. autofill::SaveCardBubbleControllerImpl::ShowBubble() expects (via DCHECK) to only be called when the save card bubble is not already visible. This constraint is violated if the user clicks multiple times on a submit button. If the underlying page goes away, the last SaveCardBubbleView created by the controller will be automatically cleaned up, but any others are left visible on the screen... holding a refence to a possibly-deleted controller. This CL early exits the ShowBubbleFor*** and ReshowBubble logic if the bubble is already visible. BUG=708819 Review-Url: https://codereview.chromium.org/2862933002 Cr-Commit-Position: refs/heads/master@{#469768} Committed: https://chromium.googlesource.com/chromium/src/+/8b457840e3512ef8c2af8d966a3edce5c653a835

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add unittests #

Total comments: 2

Patch Set 3 : fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -0 lines) Patch
M chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc View 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/autofill/save_card_bubble_controller_impl_unittest.cc View 1 2 1 chunk +56 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (15 generated)
Roger McFarlane (Chromium)
PTAL? jsaul/cshashi: you've been playing in these files recently mathp: for OWNERS
3 years, 7 months ago (2017-05-04 20:24:00 UTC) #2
csashi
lgtm Is it possible to write a unit test for this?
3 years, 7 months ago (2017-05-04 20:33:44 UTC) #5
Jared Saul
https://codereview.chromium.org/2862933002/diff/1/chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc File chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc (right): https://codereview.chromium.org/2862933002/diff/1/chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc#newcode47 chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc:47: save_card_bubble_view_->Hide(); Why did this line let the bug exist? ...
3 years, 7 months ago (2017-05-04 20:51:12 UTC) #6
Roger McFarlane (Chromium)
Added unittests. Sashi, as you're looking at increasing card save rates, this bug points out ...
3 years, 7 months ago (2017-05-05 16:16:11 UTC) #11
Jared Saul
lgtm >> Sashi, as you're looking at increasing card save rates, this bug points out ...
3 years, 7 months ago (2017-05-05 17:47:16 UTC) #14
Roger McFarlane (Chromium)
re: kSurviveNavigationSeconds = 5 I don't think the application of this works. Navigation happens, the ...
3 years, 7 months ago (2017-05-05 18:18:01 UTC) #15
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/2862933002/40001
3 years, 7 months ago (2017-05-05 18:46:41 UTC) #18
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started once the ...
3 years, 7 months ago (2017-05-05 18:46:43 UTC) #20
Jared Saul
On 2017/05/05 18:18:01, Roger McFarlane (Chromium) wrote: > re: kSurviveNavigationSeconds = 5 > > I ...
3 years, 7 months ago (2017-05-05 18:49:06 UTC) #21
Mathieu
lgtm
3 years, 7 months ago (2017-05-05 18:58:10 UTC) #22
Roger McFarlane (Chromium)
On 2017/05/05 18:49:06, Jared Saul wrote: > On 2017/05/05 18:18:01, Roger McFarlane (Chromium) wrote: > ...
3 years, 7 months ago (2017-05-05 19:46:41 UTC) #23
Roger McFarlane (Chromium)
On 2017/05/05 19:46:41, Roger McFarlane (Chromium) wrote: > On 2017/05/05 18:49:06, Jared Saul wrote: > ...
3 years, 7 months ago (2017-05-05 19:53:31 UTC) #24
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/2862933002/40001
3 years, 7 months ago (2017-05-05 20:16:47 UTC) #26
commit-bot: I haz the power
3 years, 7 months ago (2017-05-05 21:09:27 UTC) #29
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/8b457840e3512ef8c2af8d966a3e...

Powered by Google App Engine
This is Rietveld 408576698