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

Issue 1396923003: Autofill: Replace "save credit card" infobar with a bubble (Views only). (Closed)

Created:
5 years, 2 months ago by bondd
Modified:
5 years, 1 month ago
CC:
chromium-reviews, asanka, bondd+autofillwatch_chromium.org, benjhayden+dwatch_chromium.org, tfarina, browser-components-watch_chromium.org, jdonnelly+autofillwatch_chromium.org, rouslan+autofill_chromium.org, estade+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Autofill: Replace "save credit card" infobar with a bubble (Views only). Views "Save credit card" infobar is replaced with a bubble and Omnibox icon. Video of new bubble and icon are attached to bug: https://code.google.com/p/chromium/issues/detail?id=535784#c27 BUG=535784 Committed: https://crrev.com/052b5f8112cf52524b92e92c504206eee9723bf9 Cr-Commit-Position: refs/heads/master@{#356673}

Patch Set 1 #

Total comments: 25

Patch Set 2 : Change object lifecycles + add interface classes. #

Total comments: 35

Patch Set 3 : Rebase. #

Total comments: 2

Patch Set 4 : Make Mac, GN, and tests compile. #

Patch Set 5 : Rebase. #

Patch Set 6 : Replace browser tests with unit tests. Address reviewer comments. #

Total comments: 30

Patch Set 7 : Address estade@ 2015-10-22 comments. #

Patch Set 8 : Fix bad indents in autofill_manager_unittest.cc #

Patch Set 9 : Add detail to a comment and remove two unused includes. #

Total comments: 4

Patch Set 10 : Tweak SaveCardBubbleControllerImpl::DidNavigateMainFrame logic. #

Total comments: 12

Patch Set 11 : Address sky@ comments. #

Patch Set 12 : Rebase. #

Patch Set 13 : defined(TOOLKIT_VIEWS) -> defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+844 lines, -173 lines) Patch
M chrome/app/chrome_command_ids.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/autofill/autofill_browsertest.cc View 1 2 3 4 5 6 chunks +3 lines, -97 lines 0 comments Download
M chrome/browser/autofill/autofill_interactive_uitest.cc View 1 2 3 4 5 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/autofill/autofill_uitest_util.cc View 1 2 3 4 5 3 chunks +3 lines, -27 lines 0 comments Download
M chrome/browser/ui/autofill/chrome_autofill_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +11 lines, -0 lines 0 comments Download
A chrome/browser/ui/autofill/save_card_bubble_controller.h View 1 2 3 4 5 6 1 chunk +30 lines, -0 lines 0 comments Download
A chrome/browser/ui/autofill/save_card_bubble_controller_impl.h View 1 2 3 4 5 6 1 chunk +79 lines, -0 lines 0 comments Download
A chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +121 lines, -0 lines 0 comments Download
A chrome/browser/ui/autofill/save_card_bubble_view.h View 1 2 3 4 5 6 1 chunk +30 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_command_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_commands.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_commands.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_window.h View 1 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/view_id_util_browsertest.mm View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/location_bar/location_bar.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/view_ids.h View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/ui/views/autofill/save_card_bubble_views.h View 1 2 3 4 5 6 7 8 1 chunk +69 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/autofill/save_card_bubble_views.cc View 1 2 3 4 5 6 1 chunk +128 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.h View 1 2 5 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +40 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/location_bar/save_credit_card_icon_view.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/location_bar/save_credit_card_icon_view.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +53 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.cc View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +1 line, -1 line 0 comments Download
M chrome/test/base/test_browser_window.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/test/base/test_browser_window.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
D chrome/test/data/autofill/cc_autocomplete_off_test.html View 1 2 3 4 5 1 chunk +0 lines, -44 lines 0 comments Download
M components/autofill/core/browser/autofill_manager_unittest.cc View 1 2 3 4 5 6 7 5 chunks +105 lines, -1 line 0 comments Download
M components/autofill_strings.grdp View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (7 generated)
bondd
Hi estade@ - I've uploaded this for discussion. It's not done yet but I'd like ...
5 years, 2 months ago (2015-10-09 01:36:02 UTC) #3
Evan Stade
https://codereview.chromium.org/1396923003/diff/1/chrome/browser/ui/autofill/save_card_bubble_controller.h File chrome/browser/ui/autofill/save_card_bubble_controller.h (right): https://codereview.chromium.org/1396923003/diff/1/chrome/browser/ui/autofill/save_card_bubble_controller.h#newcode32 chrome/browser/ui/autofill/save_card_bubble_controller.h:32: void OnSaveButton(); I like separating these out into another ...
5 years, 2 months ago (2015-10-09 18:54:45 UTC) #4
bondd
Thanks Evan. Responded to a few of your questions. https://codereview.chromium.org/1396923003/diff/1/chrome/browser/ui/autofill/save_card_bubble_controller.h File chrome/browser/ui/autofill/save_card_bubble_controller.h (right): https://codereview.chromium.org/1396923003/diff/1/chrome/browser/ui/autofill/save_card_bubble_controller.h#newcode32 chrome/browser/ui/autofill/save_card_bubble_controller.h:32: ...
5 years, 2 months ago (2015-10-13 02:03:16 UTC) #5
Evan Stade
https://codereview.chromium.org/1396923003/diff/1/chrome/browser/ui/views/autofill/save_card_bubble_view.h File chrome/browser/ui/views/autofill/save_card_bubble_view.h (right): https://codereview.chromium.org/1396923003/diff/1/chrome/browser/ui/views/autofill/save_card_bubble_view.h#newcode24 chrome/browser/ui/views/autofill/save_card_bubble_view.h:24: class SaveCardBubbleView : public ManagedFullScreenBubbleDelegateView, On 2015/10/13 02:03:16, bondd ...
5 years, 2 months ago (2015-10-13 02:21:55 UTC) #6
Justin Donnelly
Looks pretty good for the most part. I have a few little requests below but ...
5 years, 2 months ago (2015-10-13 16:25:53 UTC) #7
bondd
I split the controller and the view into interface and implementation classes, and changed their ...
5 years, 2 months ago (2015-10-15 22:27:08 UTC) #9
Evan Stade
https://codereview.chromium.org/1396923003/diff/20001/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/1396923003/diff/20001/chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc#newcode40 chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc:40: void SaveCardBubbleControllerImpl::CreateBubble( CreateAndShow, and Show below, since you should ...
5 years, 2 months ago (2015-10-16 01:20:44 UTC) #10
hcarmona
A few things I noticed. https://codereview.chromium.org/1396923003/diff/20001/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/1396923003/diff/20001/chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc#newcode49 chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc:49: // Need to create ...
5 years, 2 months ago (2015-10-16 21:16:35 UTC) #11
Justin Donnelly
https://codereview.chromium.org/1396923003/diff/20001/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/1396923003/diff/20001/chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc#newcode40 chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc:40: void SaveCardBubbleControllerImpl::CreateBubble( On 2015/10/16 01:20:44, Evan Stade wrote: > ...
5 years, 2 months ago (2015-10-19 17:39:09 UTC) #12
Evan Stade
https://codereview.chromium.org/1396923003/diff/20001/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/1396923003/diff/20001/chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc#newcode40 chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc:40: void SaveCardBubbleControllerImpl::CreateBubble( On 2015/10/19 17:39:08, Justin Donnelly wrote: > ...
5 years, 2 months ago (2015-10-19 17:58:31 UTC) #13
bondd
Hey estade@, trybots look to be all good now except for two tests: AutofillTest.WhitespacesAndSeparatorCharsStrippedForValidCCNums AutofillTest.CCInfoNotStoredWhenAutocompleteOff ...
5 years, 2 months ago (2015-10-20 02:13:56 UTC) #14
Evan Stade
On 2015/10/20 02:13:56, bondd wrote: > Hey estade@, trybots look to be all good now ...
5 years, 2 months ago (2015-10-20 15:28:14 UTC) #15
bondd
On 2015/10/20 15:28:14, Evan Stade wrote: > On 2015/10/20 02:13:56, bondd wrote: > > Hey ...
5 years, 2 months ago (2015-10-22 01:53:41 UTC) #16
bondd
The big change in this latest patch set is I replaced three browser tests that ...
5 years, 2 months ago (2015-10-22 02:15:18 UTC) #17
bondd
+sky@ for files not in an autofill-specific directory: chrome/app/chrome_command_ids.h chrome/browser/ui/browser_command_controller.cc chrome/browser/ui/browser_commands.cc chrome/browser/ui/browser_commands.h chrome/browser/ui/browser_window.h chrome/browser/ui/cocoa/browser_window_cocoa.h chrome/browser/ui/cocoa/browser_window_cocoa.mm ...
5 years, 2 months ago (2015-10-22 02:23:02 UTC) #20
bondd
Added a few minor review comments that I forgot last night. Should I disable autofill_cc_infobar_delegate_unittest.cc ...
5 years, 2 months ago (2015-10-22 17:10:02 UTC) #21
Evan Stade
> Should I disable autofill_cc_infobar_delegate_unittest.cc for Views? All the > tests still pass, but this ...
5 years, 2 months ago (2015-10-22 22:41:38 UTC) #22
Evan Stade
overall looking pretty good https://codereview.chromium.org/1396923003/diff/100001/chrome/browser/ui/autofill/chrome_autofill_client.cc File chrome/browser/ui/autofill/chrome_autofill_client.cc (right): https://codereview.chromium.org/1396923003/diff/100001/chrome/browser/ui/autofill/chrome_autofill_client.cc#newcode158 chrome/browser/ui/autofill/chrome_autofill_client.cc:158: #if defined(OS_CHROMEOS) || defined(OS_LINUX) || ...
5 years, 2 months ago (2015-10-22 23:02:43 UTC) #23
Evan Stade
https://codereview.chromium.org/1396923003/diff/100001/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/1396923003/diff/100001/chrome/browser/ui/views/autofill/save_card_bubble_views.h#newcode25 chrome/browser/ui/views/autofill/save_card_bubble_views.h:25: // This class displays the "Save credit card?" bubble. ...
5 years, 2 months ago (2015-10-23 01:39:41 UTC) #24
bondd
Addressed all outstanding comments and kicked off the trybots. +sky@: Do you have time to ...
5 years, 2 months ago (2015-10-23 03:32:35 UTC) #25
Justin Donnelly
https://codereview.chromium.org/1396923003/diff/20001/components/autofill/core/browser/ui/save_card_bubble_controller.h File components/autofill/core/browser/ui/save_card_bubble_controller.h (right): https://codereview.chromium.org/1396923003/diff/20001/components/autofill/core/browser/ui/save_card_bubble_controller.h#newcode6 components/autofill/core/browser/ui/save_card_bubble_controller.h:6: #define COMPONENTS_AUTOFILL_CORE_BROWSER_UI_SAVE_CARD_BUBBLE_CONTROLLER_H_ On 2015/10/22 02:15:17, bondd wrote: > On ...
5 years, 2 months ago (2015-10-23 13:53:09 UTC) #26
Evan Stade
https://codereview.chromium.org/1396923003/diff/20001/components/autofill/core/browser/ui/save_card_bubble_controller.h File components/autofill/core/browser/ui/save_card_bubble_controller.h (right): https://codereview.chromium.org/1396923003/diff/20001/components/autofill/core/browser/ui/save_card_bubble_controller.h#newcode6 components/autofill/core/browser/ui/save_card_bubble_controller.h:6: #define COMPONENTS_AUTOFILL_CORE_BROWSER_UI_SAVE_CARD_BUBBLE_CONTROLLER_H_ On 2015/10/23 13:53:09, Justin Donnelly wrote: > ...
5 years, 2 months ago (2015-10-23 17:36:14 UTC) #27
Justin Donnelly
lgtm https://codereview.chromium.org/1396923003/diff/20001/components/autofill/core/browser/ui/save_card_bubble_controller.h File components/autofill/core/browser/ui/save_card_bubble_controller.h (right): https://codereview.chromium.org/1396923003/diff/20001/components/autofill/core/browser/ui/save_card_bubble_controller.h#newcode6 components/autofill/core/browser/ui/save_card_bubble_controller.h:6: #define COMPONENTS_AUTOFILL_CORE_BROWSER_UI_SAVE_CARD_BUBBLE_CONTROLLER_H_ On 2015/10/23 17:36:14, Evan Stade wrote: ...
5 years, 2 months ago (2015-10-23 17:41:09 UTC) #28
Evan Stade
https://codereview.chromium.org/1396923003/diff/160001/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/1396923003/diff/160001/chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc#newcode86 chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc:86: save_card_bubble_view_ = nullptr; reset the callback here instead of ...
5 years, 2 months ago (2015-10-23 21:56:30 UTC) #29
bondd
https://codereview.chromium.org/1396923003/diff/160001/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/1396923003/diff/160001/chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc#newcode86 chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc:86: save_card_bubble_view_ = nullptr; On 2015/10/23 21:56:30, Evan Stade wrote: ...
5 years, 2 months ago (2015-10-23 22:58:28 UTC) #30
Evan Stade
lgtm
5 years, 2 months ago (2015-10-23 23:24:02 UTC) #31
sky
https://codereview.chromium.org/1396923003/diff/180001/chrome/browser/ui/browser_command_controller.cc File chrome/browser/ui/browser_command_controller.cc (right): https://codereview.chromium.org/1396923003/diff/180001/chrome/browser/ui/browser_command_controller.cc#newcode560 chrome/browser/ui/browser_command_controller.cc:560: SaveCreditCard(browser_); Shouldn't you only enable this if it actually ...
5 years, 1 month ago (2015-10-26 20:56:26 UTC) #32
bondd
Addressed sky@ comments. https://codereview.chromium.org/1396923003/diff/180001/chrome/browser/ui/browser_command_controller.cc File chrome/browser/ui/browser_command_controller.cc (right): https://codereview.chromium.org/1396923003/diff/180001/chrome/browser/ui/browser_command_controller.cc#newcode560 chrome/browser/ui/browser_command_controller.cc:560: SaveCreditCard(browser_); On 2015/10/26 20:56:26, sky wrote: ...
5 years, 1 month ago (2015-10-27 01:06:39 UTC) #33
sky
LGTM https://codereview.chromium.org/1396923003/diff/180001/chrome/browser/ui/views/location_bar/save_credit_card_icon_view.cc File chrome/browser/ui/views/location_bar/save_credit_card_icon_view.cc (right): https://codereview.chromium.org/1396923003/diff/180001/chrome/browser/ui/views/location_bar/save_credit_card_icon_view.cc#newcode43 chrome/browser/ui/views/location_bar/save_credit_card_icon_view.cc:43: autofill::SaveCardBubbleControllerImpl::FromWebContents(web_contents); On 2015/10/27 01:06:39, bondd wrote: > On ...
5 years, 1 month ago (2015-10-27 20:58:25 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1396923003/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1396923003/240001
5 years, 1 month ago (2015-10-28 21:18:58 UTC) #37
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years, 1 month ago (2015-10-28 22:39:40 UTC) #38
commit-bot: I haz the power
5 years, 1 month ago (2015-10-28 22:40:29 UTC) #39
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/052b5f8112cf52524b92e92c504206eee9723bf9
Cr-Commit-Position: refs/heads/master@{#356673}

Powered by Google App Engine
This is Rietveld 408576698