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

Issue 1407093007: Autofill: Add legal message footer to save credit card bubble. (Closed)

Created:
5 years, 1 month ago by bondd
Modified:
5 years, 1 month ago
CC:
chromium-reviews, rouslan+autofill_chromium.org, bondd+autofillwatch_chromium.org, jdonnelly+autofillwatch_chromium.org, tfarina, 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: Add legal message footer to save credit card bubble. Footer displays a message with embedded links, using JSON-formatted message data to be provided by server. There is currently no way to see the footer without adding test code, as SaveCardBubbleControllerImpl::SetLegalMessage() is not called from anywhere yet. Screenshot attached to bug: https://code.google.com/p/chromium/issues/detail?id=552667#c1 BUG=552667 Committed: https://crrev.com/dfa5b30be8e0809ee7f4c1c33d3b274fbc61ec80 Cr-Commit-Position: refs/heads/master@{#360866}

Patch Set 1 #

Total comments: 25

Patch Set 2 : Add unit tests + address reviewer comments. #

Total comments: 8

Patch Set 3 : Rebase. #

Total comments: 3

Patch Set 4 : Change interface for retrieving lines + give each line its own StyledLabel. #

Total comments: 20

Patch Set 5 : Fix nits. #

Patch Set 6 : Rebase. #

Patch Set 7 : Fix unit tests. #

Total comments: 4

Patch Set 8 : Fix views_unittests. #

Patch Set 9 : Fix trybots. #

Total comments: 3

Patch Set 10 : StyledLabel ref -> pointer, shorten unit tests, fix nits. #

Patch Set 11 : Rebase. #

Patch Set 12 : Move new unittests file to non_mobile sources. #

Total comments: 16

Patch Set 13 : Address estade@ comments for patch set 12. #

Total comments: 19

Patch Set 14 : Address estade@ comments for patch set 13. #

Total comments: 13

Patch Set 15 : Address estade@ comments for patch set 14. #

Total comments: 2

Patch Set 16 : Rebase + collapse 3 if statements. #

Patch Set 17 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+722 lines, -48 lines) Patch
M chrome/browser/chromeos/attestation/platform_verification_dialog.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/attestation/platform_verification_dialog.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/ui/echo_dialog_view.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/ui/echo_dialog_view.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/autofill/save_card_bubble_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +26 lines, -0 lines 0 comments Download
A + chrome/browser/ui/autofill/save_card_bubble_controller.cc View 1 2 3 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/autofill/save_card_bubble_controller_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +37 lines, -0 lines 0 comments Download
M chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +144 lines, -5 lines 0 comments Download
A chrome/browser/ui/autofill/save_card_bubble_controller_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +349 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/autofill/autofill_dialog_views.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/autofill/password_generation_popup_view_views.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/autofill/password_generation_popup_view_views.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/autofill/save_card_bubble_views.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +13 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/autofill/save_card_bubble_views.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +78 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 10 chunks +19 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/proximity_auth/proximity_auth_error_bubble_view.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/proximity_auth/proximity_auth_error_bubble_view.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/session_crashed_bubble_view.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/session_crashed_bubble_view.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/website_settings/website_settings_popup_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/website_settings/website_settings_popup_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -1 line 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/controls/styled_label.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/styled_label_listener.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -1 line 0 comments Download
M ui/views/controls/styled_label_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 42 (11 generated)
bondd
https://codereview.chromium.org/1407093007/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/1407093007/diff/1/chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc#newcode48 chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc:48: bool SaveCardBubbleControllerImpl::SetLegalMessage( I'll add some unit tests for SetLegalMessage() ...
5 years, 1 month ago (2015-11-07 02:29:38 UTC) #3
Evan Stade
https://codereview.chromium.org/1407093007/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/1407093007/diff/1/chrome/browser/ui/autofill/save_card_bubble_controller.h#newcode31 chrome/browser/ui/autofill/save_card_bubble_controller.h:31: virtual size_t GetLegalMessageNumLinks() const = 0; combine these into ...
5 years, 1 month ago (2015-11-07 03:03:19 UTC) #4
Justin Donnelly
https://codereview.chromium.org/1407093007/diff/1/chrome/browser/ui/views/autofill/save_card_bubble_views.cc File chrome/browser/ui/views/autofill/save_card_bubble_views.cc (right): https://codereview.chromium.org/1407093007/diff/1/chrome/browser/ui/views/autofill/save_card_bubble_views.cc#newcode190 chrome/browser/ui/views/autofill/save_card_bubble_views.cc:190: views::StyledLabel::RangeStyleInfo::CreateForLink(); On 2015/11/07 03:03:19, Evan Stade wrote: > no ...
5 years, 1 month ago (2015-11-09 16:04:36 UTC) #5
Evan Stade
https://codereview.chromium.org/1407093007/diff/1/chrome/browser/ui/views/autofill/save_card_bubble_views.cc File chrome/browser/ui/views/autofill/save_card_bubble_views.cc (right): https://codereview.chromium.org/1407093007/diff/1/chrome/browser/ui/views/autofill/save_card_bubble_views.cc#newcode190 chrome/browser/ui/views/autofill/save_card_bubble_views.cc:190: views::StyledLabel::RangeStyleInfo::CreateForLink(); On 2015/11/09 16:04:35, Justin Donnelly wrote: > On ...
5 years, 1 month ago (2015-11-09 18:59:10 UTC) #6
bondd
As Evan and I discussed, I addressed all issues other than '\n'. When we get ...
5 years, 1 month ago (2015-11-11 01:53:37 UTC) #7
Evan Stade
https://codereview.chromium.org/1407093007/diff/1/chrome/browser/ui/views/autofill/save_card_bubble_views.cc File chrome/browser/ui/views/autofill/save_card_bubble_views.cc (right): https://codereview.chromium.org/1407093007/diff/1/chrome/browser/ui/views/autofill/save_card_bubble_views.cc#newcode184 chrome/browser/ui/views/autofill/save_card_bubble_views.cc:184: views::Background::CreateSolidBackground(kLightShadingColor)); On 2015/11/11 01:53:36, bondd wrote: > On 2015/11/07 ...
5 years, 1 month ago (2015-11-11 22:22:55 UTC) #8
Evan Stade
https://codereview.chromium.org/1407093007/diff/30001/chrome/browser/ui/autofill/save_card_bubble_controller_impl_unittest.cc File chrome/browser/ui/autofill/save_card_bubble_controller_impl_unittest.cc (right): https://codereview.chromium.org/1407093007/diff/30001/chrome/browser/ui/autofill/save_card_bubble_controller_impl_unittest.cc#newcode300 chrome/browser/ui/autofill/save_card_bubble_controller_impl_unittest.cc:300: expected_ranges.push_back(gfx::Range(19, 20)); struct { Range range; URL url; } ...
5 years, 1 month ago (2015-11-11 23:53:54 UTC) #9
bondd
Hi Evan, For your consideration. :) I think this is everything we discussed. I haven't ...
5 years, 1 month ago (2015-11-13 01:19:53 UTC) #10
Evan Stade
looks much better, thanks. Controller and view lg with nits. https://codereview.chromium.org/1407093007/diff/50001/chrome/browser/ui/autofill/save_card_bubble_controller.h File chrome/browser/ui/autofill/save_card_bubble_controller.h (right): https://codereview.chromium.org/1407093007/diff/50001/chrome/browser/ui/autofill/save_card_bubble_controller.h#newcode24 ...
5 years, 1 month ago (2015-11-13 01:33:07 UTC) #11
bondd
Responded to nits and fixed unit tests. I've got a couple of questions below. https://codereview.chromium.org/1407093007/diff/50001/chrome/browser/ui/autofill/save_card_bubble_controller.h ...
5 years, 1 month ago (2015-11-13 22:30:44 UTC) #12
Justin Donnelly
https://codereview.chromium.org/1407093007/diff/50001/chrome/browser/ui/views/autofill/save_card_bubble_views.cc File chrome/browser/ui/views/autofill/save_card_bubble_views.cc (right): https://codereview.chromium.org/1407093007/diff/50001/chrome/browser/ui/views/autofill/save_card_bubble_views.cc#newcode143 chrome/browser/ui/views/autofill/save_card_bubble_views.cc:143: View* view = new View(); On 2015/11/13 22:30:43, bondd ...
5 years, 1 month ago (2015-11-13 22:51:04 UTC) #13
bondd
+sky@ for OWNERS review: chrome/browser/ui/views/ (except for chrome/browser/ui/views/autofill/) ui/views/controls/ All I did here is add ...
5 years, 1 month ago (2015-11-13 23:28:23 UTC) #16
Evan Stade
https://codereview.chromium.org/1407093007/diff/50001/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/1407093007/diff/50001/chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc#newcode178 chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc:178: void SaveCardBubbleControllerImpl::ClearLegalMessage() { On 2015/11/13 22:30:43, bondd wrote: > ...
5 years, 1 month ago (2015-11-14 00:22:50 UTC) #17
sky
https://codereview.chromium.org/1407093007/diff/150001/ui/views/controls/styled_label_listener.h File ui/views/controls/styled_label_listener.h (right): https://codereview.chromium.org/1407093007/diff/150001/ui/views/controls/styled_label_listener.h#newcode21 ui/views/controls/styled_label_listener.h:21: virtual void StyledLabelLinkClicked(StyledLabel& label, On 2015/11/14 00:22:50, Evan Stade ...
5 years, 1 month ago (2015-11-14 15:28:37 UTC) #18
bondd
I'm still sorting out a few trybots, but the rest of this is ready for ...
5 years, 1 month ago (2015-11-17 00:12:04 UTC) #19
sky
LGTM
5 years, 1 month ago (2015-11-17 14:28:18 UTC) #20
Evan Stade
https://codereview.chromium.org/1407093007/diff/200001/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/1407093007/diff/200001/chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc#newcode36 chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc:36: std::vector<size_t>& out_offsets) { no non-const refs as parameters. Outparams ...
5 years, 1 month ago (2015-11-17 19:38:19 UTC) #21
bondd
https://codereview.chromium.org/1407093007/diff/200001/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/1407093007/diff/200001/chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc#newcode36 chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc:36: std::vector<size_t>& out_offsets) { On 2015/11/17 19:38:19, Evan Stade wrote: ...
5 years, 1 month ago (2015-11-17 23:48:58 UTC) #22
Evan Stade
https://codereview.chromium.org/1407093007/diff/200001/chrome/browser/ui/autofill/save_card_bubble_controller_impl_unittest.cc File chrome/browser/ui/autofill/save_card_bubble_controller_impl_unittest.cc (right): https://codereview.chromium.org/1407093007/diff/200001/chrome/browser/ui/autofill/save_card_bubble_controller_impl_unittest.cc#newcode58 chrome/browser/ui/autofill/save_card_bubble_controller_impl_unittest.cc:58: const std::vector<SaveCardBubbleController::LegalMessageLine>& a, On 2015/11/17 23:48:58, bondd wrote: > ...
5 years, 1 month ago (2015-11-18 00:21:14 UTC) #23
bondd
https://codereview.chromium.org/1407093007/diff/200001/chrome/browser/ui/autofill/save_card_bubble_controller_impl_unittest.cc File chrome/browser/ui/autofill/save_card_bubble_controller_impl_unittest.cc (right): https://codereview.chromium.org/1407093007/diff/200001/chrome/browser/ui/autofill/save_card_bubble_controller_impl_unittest.cc#newcode58 chrome/browser/ui/autofill/save_card_bubble_controller_impl_unittest.cc:58: const std::vector<SaveCardBubbleController::LegalMessageLine>& a, On 2015/11/18 00:21:13, Evan Stade wrote: ...
5 years, 1 month ago (2015-11-18 01:59:40 UTC) #24
Evan Stade
https://codereview.chromium.org/1407093007/diff/220001/chrome/browser/ui/views/autofill/save_card_bubble_views.cc File chrome/browser/ui/views/autofill/save_card_bubble_views.cc (right): https://codereview.chromium.org/1407093007/diff/220001/chrome/browser/ui/views/autofill/save_card_bubble_views.cc#newcode119 chrome/browser/ui/views/autofill/save_card_bubble_views.cc:119: int line_index = label->parent()->GetIndexOf(label); On 2015/11/18 01:59:40, bondd wrote: ...
5 years, 1 month ago (2015-11-18 22:01:19 UTC) #25
bondd
https://codereview.chromium.org/1407093007/diff/240001/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/1407093007/diff/240001/chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc#newcode35 chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc:35: base::string16& out_message, On 2015/11/18 22:01:19, Evan Stade wrote: > ...
5 years, 1 month ago (2015-11-18 23:41:42 UTC) #26
Evan Stade
lgtm https://codereview.chromium.org/1407093007/diff/260001/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/1407093007/diff/260001/chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc#newcode103 chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc:103: // Read and store the "display_text" string. combine ...
5 years, 1 month ago (2015-11-19 03:22:44 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1407093007/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1407093007/280001
5 years, 1 month ago (2015-11-20 02:58:44 UTC) #30
bondd
https://codereview.chromium.org/1407093007/diff/260001/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/1407093007/diff/260001/chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc#newcode103 chrome/browser/ui/autofill/save_card_bubble_controller_impl.cc:103: // Read and store the "display_text" string. On 2015/11/19 ...
5 years, 1 month ago (2015-11-20 02:58:54 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/59935) chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 1 month ago (2015-11-20 03:11:02 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1407093007/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1407093007/300001
5 years, 1 month ago (2015-11-20 03:58:38 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_TIMED_OUT, no build URL) ios_rel_device_ninja on ...
5 years, 1 month ago (2015-11-20 05:30:51 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1407093007/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1407093007/300001
5 years, 1 month ago (2015-11-20 18:37:45 UTC) #40
commit-bot: I haz the power
Committed patchset #17 (id:300001)
5 years, 1 month ago (2015-11-20 18:46:49 UTC) #41
commit-bot: I haz the power
5 years, 1 month ago (2015-11-20 18:47:23 UTC) #42
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/dfa5b30be8e0809ee7f4c1c33d3b274fbc61ec80
Cr-Commit-Position: refs/heads/master@{#360866}

Powered by Google App Engine
This is Rietveld 408576698