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

Issue 2870013003: [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:
CC:
chromium-reviews
Target Ref:
refs/branch-heads/3071
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} (cherry picked from commit 8b457840e3512ef8c2af8d966a3edce5c653a835) Review-Url: https://codereview.chromium.org/2870013003 . Cr-Commit-Position: refs/branch-heads/3071@{#484} Cr-Branched-From: a106f0abbf69dad349d4aaf4bcc4f5d376dd2377-refs/heads/master@{#464641} Committed: https://chromium.googlesource.com/chromium/src/+/e5c96b4f08745497680d6f85f40f16ed158dc001

Patch Set 1 #

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 chunk +56 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
Roger McFarlane (Chromium)
3 years, 7 months ago (2017-05-09 18:47:45 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
e5c96b4f08745497680d6f85f40f16ed158dc001.

Powered by Google App Engine
This is Rietveld 408576698