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

Issue 1578173005: Move Autofill Payments integration checkbox to the sync settings page. (Closed)

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

Description

Move Autofill Payments integration checkbox to the sync settings page. Based on results of discussions between privacy, pm, and UI review. Mock available at: https://screenshot.googleplex.com/59eiPNOvZAS.png Notes on the implementation: The mechanism for handling the availability of the payments integration setting has changed. Previously it was changed by events from the personal data manager and the sync service. This was because it depended on the state of those services and because the setting was on a different page than the sync settings. With the new upload feature, the availability of the integration setting depends *only* on whether Autofill sync is enabled. (It no longer depends on the rollout flag governed by the sync service nor on whether the user currently has server cards in the personal data manager.) Because of this and since the setting is on the same page/dialog as the Autofill sync setting, the availability of the integration setting can simply be changed in a click handler on the Autofill sync setting. "Availability" is also now implemented via disabling (greying out) rather than visibility to avoid a dialog size change and relayout whenever the user clicks the Autofill sync setting. One final detail: on the Autofill settings dialog, the magic "pref=" mechanism was used to read/write the integration setting. Because the sync settings dialog uses an ok/cancel design, we can't immediately write the value of the checkbox to the setting. Instead, it's manually set along with the rest of the sync settings after the user clicks ok. BUG=535784 Committed: https://crrev.com/b4ddb6b439ded116b61d77dc6ed0f0e8a3bad4b9 Cr-Commit-Position: refs/heads/master@{#369857}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Fix tests, git cl format #

Patch Set 3 : Inline function and fix 'sync everything' behavior #

Patch Set 4 : Add "Learn more" link #

Total comments: 2

Patch Set 5 : Replace bool with enum in tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -164 lines) Patch
M chrome/app/generated_resources.grd View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/options/autofill_options.html View 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/resources/options/autofill_options.js View 3 chunks +0 lines, -18 lines 0 comments Download
M chrome/browser/resources/options/sync_setup_overlay.css View 2 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/resources/options/sync_setup_overlay.html View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/sync_setup_overlay.js View 1 2 7 chunks +20 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/autofill_options_handler.h View 4 chunks +1 line, -10 lines 0 comments Download
M chrome/browser/ui/webui/options/autofill_options_handler.cc View 1 6 chunks +1 line, -29 lines 0 comments Download
M chrome/browser/ui/webui/options/sync_setup_handler.cc View 1 2 3 9 chunks +74 lines, -53 lines 0 comments Download
M chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc View 1 2 3 4 14 chunks +40 lines, -36 lines 0 comments Download

Messages

Total messages: 22 (11 generated)
Justin Donnelly
4 years, 11 months ago (2016-01-14 22:07:54 UTC) #4
Dan Beam
i'm generally unsure where this UI should go and kinda hazy on how these 3 ...
4 years, 11 months ago (2016-01-15 01:28:20 UTC) #6
Justin Donnelly
Brett has agreed to review this.
4 years, 11 months ago (2016-01-15 14:09:58 UTC) #7
please use gerrit instead
https://codereview.chromium.org/1578173005/diff/20001/chrome/browser/resources/options/sync_setup_overlay.js File chrome/browser/resources/options/sync_setup_overlay.js (right): https://codereview.chromium.org/1578173005/diff/20001/chrome/browser/resources/options/sync_setup_overlay.js#newcode856 chrome/browser/resources/options/sync_setup_overlay.js:856: * Toggles the visibility of the Payments integration checkbox. ...
4 years, 11 months ago (2016-01-15 17:05:32 UTC) #10
Justin Donnelly
https://codereview.chromium.org/1578173005/diff/20001/chrome/browser/resources/options/sync_setup_overlay.js File chrome/browser/resources/options/sync_setup_overlay.js (right): https://codereview.chromium.org/1578173005/diff/20001/chrome/browser/resources/options/sync_setup_overlay.js#newcode856 chrome/browser/resources/options/sync_setup_overlay.js:856: * Toggles the visibility of the Payments integration checkbox. ...
4 years, 11 months ago (2016-01-15 17:15:36 UTC) #12
brettw
With upstreaming, I think moving this to sync makes sense. https://codereview.chromium.org/1578173005/diff/100001/chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc File chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc (right): https://codereview.chromium.org/1578173005/diff/100001/chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc#newcode65 ...
4 years, 11 months ago (2016-01-15 20:30:41 UTC) #13
brettw
LGTM with previous suggestions ^^^
4 years, 11 months ago (2016-01-15 20:30:58 UTC) #14
Justin Donnelly
Thanks for the review. https://codereview.chromium.org/1578173005/diff/100001/chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc File chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc (right): https://codereview.chromium.org/1578173005/diff/100001/chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc#newcode65 chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc:65: enum EncryptAllConfig { On 2016/01/15 ...
4 years, 11 months ago (2016-01-15 21:16:51 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1578173005/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1578173005/120001
4 years, 11 months ago (2016-01-15 21:18:11 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 11 months ago (2016-01-15 22:05:34 UTC) #20
commit-bot: I haz the power
4 years, 11 months ago (2016-01-15 22:06:37 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b4ddb6b439ded116b61d77dc6ed0f0e8a3bad4b9
Cr-Commit-Position: refs/heads/master@{#369857}

Powered by Google App Engine
This is Rietveld 408576698