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

Issue 1568983002: Close the save card bubble on tab switch. (Closed)

Created:
4 years, 11 months ago by Justin Donnelly
Modified:
4 years, 11 months ago
Reviewers:
Evan Stade
CC:
chromium-reviews, rouslan+autofill_chromium.org, tfarina, jdonnelly+autofillwatch_chromium.org, bondd+autofillwatch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, please use gerrit instead
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Close the save card bubble on tab switch. As of https://codereview.chromium.org/1402363013/ location bar bubbles are initially inactive when shown. This results in the save card bubble failing to close when switching tabs. When a location bar bubble is *active*, loss of focus will deactivate and thus close the bubble. This CL adds an implementation of TabStripModelObserver::TabDeactivated to close it when it isn't active. BUG=535784 Committed: https://crrev.com/238b112dd7fda58a408f0c351b8b207aaa33f142 Cr-Commit-Position: refs/heads/master@{#368884}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Remove static method, use TabStripModelObserver instead #

Total comments: 2

Patch Set 3 : Remove mouse handler override #

Total comments: 2

Patch Set 4 : Remove HideBubble from SaveCardBubbleController #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -9 lines) Patch
M chrome/browser/ui/autofill/save_card_bubble_controller_impl.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc View 1 2 3 1 chunk +7 lines, -0 lines 2 comments Download
M chrome/browser/ui/views/autofill/save_card_icon_view.h View 1 2 3 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/ui/views/autofill/save_card_icon_view.cc View 1 2 3 chunks +19 lines, -8 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 30 (9 generated)
Justin Donnelly
https://codereview.chromium.org/1568983002/diff/1/chrome/browser/ui/views/autofill/save_card_bubble_views.h File chrome/browser/ui/views/autofill/save_card_bubble_views.h (right): https://codereview.chromium.org/1568983002/diff/1/chrome/browser/ui/views/autofill/save_card_bubble_views.h#newcode45 chrome/browser/ui/views/autofill/save_card_bubble_views.h:45: static void CloseBubble(); The static method is unfortunate given ...
4 years, 11 months ago (2016-01-07 19:28:12 UTC) #3
Evan Stade
is there a way we can refactor and share code instead of copying from bubble ...
4 years, 11 months ago (2016-01-08 03:19:45 UTC) #5
Justin Donnelly
On 2016/01/08 03:19:45, Evan Stade wrote: > is there a way we can refactor and ...
4 years, 11 months ago (2016-01-08 18:13:53 UTC) #6
Justin Donnelly
https://codereview.chromium.org/1568983002/diff/1/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): https://codereview.chromium.org/1568983002/diff/1/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode994 chrome/browser/ui/views/location_bar/location_bar_view.cc:994: autofill::SaveCardBubbleViews::CloseBubble(); On 2016/01/08 03:19:45, Evan Stade wrote: > save_credit_card_icon_view_->GetBubble()->Hide()? ...
4 years, 11 months ago (2016-01-08 18:14:05 UTC) #7
Evan Stade
> Yes, that's very much what I'd prefer to do. The problem is that this ...
4 years, 11 months ago (2016-01-08 22:06:22 UTC) #8
Evan Stade
On 2016/01/08 22:06:22, Evan Stade wrote: > > Yes, that's very much what I'd prefer ...
4 years, 11 months ago (2016-01-08 22:09:11 UTC) #9
Justin Donnelly
Awesome, thanks, I'll give that a shot. On Fri, Jan 8, 2016 at 2:09 PM, ...
4 years, 11 months ago (2016-01-08 22:23:47 UTC) #10
Justin Donnelly
Ok, static nonsense gone. The TabStripModelObserver approach works great. A similar approach may be possible ...
4 years, 11 months ago (2016-01-11 16:33:33 UTC) #12
Evan Stade
https://codereview.chromium.org/1568983002/diff/20001/chrome/browser/ui/views/autofill/save_card_icon_view.cc File chrome/browser/ui/views/autofill/save_card_icon_view.cc (right): https://codereview.chromium.org/1568983002/diff/20001/chrome/browser/ui/views/autofill/save_card_icon_view.cc#newcode34 chrome/browser/ui/views/autofill/save_card_icon_view.cc:34: bool SaveCardIconView::OnMousePressed(const ui::MouseEvent& event) { BubbleIconView handles more than ...
4 years, 11 months ago (2016-01-11 18:05:24 UTC) #13
Justin Donnelly
https://codereview.chromium.org/1568983002/diff/20001/chrome/browser/ui/views/autofill/save_card_icon_view.cc File chrome/browser/ui/views/autofill/save_card_icon_view.cc (right): https://codereview.chromium.org/1568983002/diff/20001/chrome/browser/ui/views/autofill/save_card_icon_view.cc#newcode34 chrome/browser/ui/views/autofill/save_card_icon_view.cc:34: bool SaveCardIconView::OnMousePressed(const ui::MouseEvent& event) { On 2016/01/11 18:05:24, Evan ...
4 years, 11 months ago (2016-01-11 19:32:37 UTC) #14
Evan Stade
On 2016/01/11 19:32:37, Justin Donnelly wrote: > https://codereview.chromium.org/1568983002/diff/20001/chrome/browser/ui/views/autofill/save_card_icon_view.cc > File chrome/browser/ui/views/autofill/save_card_icon_view.cc (right): > > https://codereview.chromium.org/1568983002/diff/20001/chrome/browser/ui/views/autofill/save_card_icon_view.cc#newcode34 ...
4 years, 11 months ago (2016-01-11 22:50:42 UTC) #15
Justin Donnelly
I believe it fully fixes the bug insofar as it's not currently possible to get ...
4 years, 11 months ago (2016-01-11 23:38:59 UTC) #16
Justin Donnelly
Per our offline discussion, I removed the mouse handler part of this CL. Now it's ...
4 years, 11 months ago (2016-01-12 00:23:35 UTC) #18
Evan Stade
https://codereview.chromium.org/1568983002/diff/40001/chrome/browser/ui/autofill/save_card_bubble_controller.h File chrome/browser/ui/autofill/save_card_bubble_controller.h (right): https://codereview.chromium.org/1568983002/diff/40001/chrome/browser/ui/autofill/save_card_bubble_controller.h#newcode45 chrome/browser/ui/autofill/save_card_bubble_controller.h:45: virtual void HideBubble() = 0; doesn't need to be ...
4 years, 11 months ago (2016-01-12 00:29:00 UTC) #19
Justin Donnelly
https://codereview.chromium.org/1568983002/diff/40001/chrome/browser/ui/autofill/save_card_bubble_controller.h File chrome/browser/ui/autofill/save_card_bubble_controller.h (right): https://codereview.chromium.org/1568983002/diff/40001/chrome/browser/ui/autofill/save_card_bubble_controller.h#newcode45 chrome/browser/ui/autofill/save_card_bubble_controller.h:45: virtual void HideBubble() = 0; On 2016/01/12 00:29:00, Evan ...
4 years, 11 months ago (2016-01-12 00:40:39 UTC) #21
Evan Stade
https://codereview.chromium.org/1568983002/diff/80001/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/1568983002/diff/80001/chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc#newcode206 chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc:206: save_card_bubble_view_ = nullptr; do we not get onbubbleclosed?
4 years, 11 months ago (2016-01-12 01:24:37 UTC) #22
Justin Donnelly
https://codereview.chromium.org/1568983002/diff/80001/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/1568983002/diff/80001/chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc#newcode206 chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc:206: save_card_bubble_view_ = nullptr; On 2016/01/12 01:24:37, Evan Stade wrote: ...
4 years, 11 months ago (2016-01-12 04:24:37 UTC) #23
Evan Stade
lgtm
4 years, 11 months ago (2016-01-12 05:05:05 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1568983002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1568983002/80001
4 years, 11 months ago (2016-01-12 15:23:30 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 11 months ago (2016-01-12 15:55:48 UTC) #28
commit-bot: I haz the power
4 years, 11 months ago (2016-01-12 15:57:40 UTC) #30
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/238b112dd7fda58a408f0c351b8b207aaa33f142
Cr-Commit-Position: refs/heads/master@{#368884}

Powered by Google App Engine
This is Rietveld 408576698