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

Issue 1487283005: Implement the new Sync Confirmation dialog on Linux and Windows. (Closed)

Created:
5 years ago by anthonyvd
Modified:
4 years, 9 months ago
CC:
chromium-reviews, tim+watch_chromium.org, zea+watch_chromium.org, tfarina, maxbogue+watch_chromium.org, pvalenzuela+watch_chromium.org, plaree+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement the new Sync Confirmation dialog on Linux and Windows. This CL mostly implements the sync confirmation dialog that is shown at the end of the tab modal signin flow described in the associated bug. It allows the user to make an explicit decision about starting sync before it's started and before sign in is completed. TEST= 1. Enable the --enable-password-separated-signin-flow flag in chrome://flags and restart Chrome 2. In a non-signed in Chrome Profile, select "Sign in to Chrome" from the User Menu. 3. Enter valid credentials to sign in to Chrome, the sign in window should close and the sync confirmation window should be shown 4. From that window, clicking "Got it" should close the window and leave the user signed in with sync started. Clicking "Undo" should close the window and leave the user signed out with sync not started. BUG=533004 Committed: https://crrev.com/72d9ed4e1e5a1b1c174958dce3d4b8b7a5402e67 Cr-Commit-Position: refs/heads/master@{#371907}

Patch Set 1 #

Patch Set 2 : Move strings to resources and properly enable the settings link. #

Total comments: 4

Patch Set 3 : Adress feedback #

Total comments: 18

Patch Set 4 : Add some tests. #

Total comments: 62

Patch Set 5 : Rebase #

Patch Set 6 : Address comments and use Polymer where relevant. #

Total comments: 3

Patch Set 7 : Go back to using signed int for image side length. #

Patch Set 8 : Reverted a few sign changes missed in last patchset #

Total comments: 28

Patch Set 9 : Address feedback #

Total comments: 20

Patch Set 10 : Rebase #

Patch Set 11 : Address feedback #

Total comments: 19

Patch Set 12 : Address comments except adding tests #

Patch Set 13 : Add unit tests to SyncConfirmationHandler. #

Total comments: 18

Patch Set 14 : Address unit test comments. #

Patch Set 15 : Rebase #

Patch Set 16 : Post-rebase build and test fixes #

Patch Set 17 : Fix Mac/ChromeOS builds and iOS tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+916 lines, -90 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_avatar_icon_util.h View 1 2 3 4 6 7 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_avatar_icon_util.cc View 1 2 3 4 6 7 3 chunks +55 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_avatar_icon_util_unittest.cc View 1 2 3 2 chunks +72 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_downloader.cc View 1 2 3 4 4 chunks +5 lines, -57 lines 0 comments Download
A chrome/browser/resources/sync_confirmation/sync_confirmation.css View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +102 lines, -0 lines 0 comments Download
A chrome/browser/resources/sync_confirmation/sync_confirmation.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/resources/sync_confirmation/sync_confirmation.js View 1 2 3 4 5 6 7 8 1 chunk +37 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_test.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_window.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.h 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/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_sync_starter.h View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/sync/one_click_signin_sync_starter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +30 lines, -15 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/profiles/signin_view_controller.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/profiles/signin_view_controller.cc View 1 2 3 4 5 6 7 8 9 4 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/signin/login_ui_service.h View 1 2 3 4 3 chunks +16 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/signin/login_ui_service.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
A chrome/browser/ui/webui/signin/sync_confirmation_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +65 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/signin/sync_confirmation_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +113 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/signin/sync_confirmation_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +209 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/signin/sync_confirmation_ui.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/signin/sync_confirmation_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +47 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -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 16 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/url_constants.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/test/base/test_browser_window.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M components/signin/core/browser/fake_signin_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -0 lines 0 comments Download
M ui/webui/resources/webui_resources.grd View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (10 generated)
anthonyvd
Hi Roger, can you please take a first pass at this review of the sync ...
5 years ago (2015-12-03 18:52:11 UTC) #2
Roger Tawa OOO till Jul 10th
lgtm, a couple of nits below. https://codereview.chromium.org/1487283005/diff/20001/chrome/browser/ui/sync/one_click_signin_sync_starter.cc File chrome/browser/ui/sync/one_click_signin_sync_starter.cc (right): https://codereview.chromium.org/1487283005/diff/20001/chrome/browser/ui/sync/one_click_signin_sync_starter.cc#newcode403 chrome/browser/ui/sync/one_click_signin_sync_starter.cc:403: } Nit: use ...
5 years ago (2015-12-03 20:33:45 UTC) #3
anthonyvd
Thanks Roger, fixed those nits and adding other owners now. https://codereview.chromium.org/1487283005/diff/20001/chrome/browser/ui/sync/one_click_signin_sync_starter.cc File chrome/browser/ui/sync/one_click_signin_sync_starter.cc (right): https://codereview.chromium.org/1487283005/diff/20001/chrome/browser/ui/sync/one_click_signin_sync_starter.cc#newcode403 ...
5 years ago (2015-12-03 21:48:03 UTC) #4
anthonyvd
Hello everyone, this CL adds the tab-modal sync confirmation dialog that is part of the ...
5 years ago (2015-12-03 21:54:59 UTC) #6
sky
https://codereview.chromium.org/1487283005/diff/40001/chrome/browser/profiles/profile_avatar_icon_util.cc File chrome/browser/profiles/profile_avatar_icon_util.cc (right): https://codereview.chromium.org/1487283005/diff/40001/chrome/browser/profiles/profile_avatar_icon_util.cc#newcode399 chrome/browser/profiles/profile_avatar_icon_util.cc:399: bool GetImageURLWithSize(const GURL& old_url, int size, GURL* new_url) { ...
5 years ago (2015-12-04 00:29:21 UTC) #7
Evan Stade
+dbeam in my stead. Dan much more up to date on WebUI stuff (has it ...
5 years ago (2015-12-04 01:46:57 UTC) #8
Evan Stade
+dbeam for real this time
5 years ago (2015-12-04 01:47:25 UTC) #10
Robert Sesek
https://codereview.chromium.org/1487283005/diff/40001/chrome/browser/ui/browser_window.h File chrome/browser/ui/browser_window.h (right): https://codereview.chromium.org/1487283005/diff/40001/chrome/browser/ui/browser_window.h#newcode397 chrome/browser/ui/browser_window.h:397: virtual void ShowModalSyncConfirmationWindow() = 0; This should have a ...
5 years ago (2015-12-04 17:29:58 UTC) #11
anthonyvd
Addressed this first batch of comments and added some questions of my own. Thanks again ...
5 years ago (2015-12-04 22:42:07 UTC) #12
sky
LGTM
5 years ago (2015-12-04 23:47:38 UTC) #13
anthonyvd
Gentle post-holiday ping to get this moving again. Thanks for your time!
4 years, 11 months ago (2016-01-06 18:10:26 UTC) #14
Robert Sesek
LGTM https://codereview.chromium.org/1487283005/diff/60001/chrome/browser/resources/sync_confirmation/sync_confirmation.html File chrome/browser/resources/sync_confirmation/sync_confirmation.html (right): https://codereview.chromium.org/1487283005/diff/60001/chrome/browser/resources/sync_confirmation/sync_confirmation.html#newcode2 chrome/browser/resources/sync_confirmation/sync_confirmation.html:2: <head> Does this page display internationalized content? If ...
4 years, 11 months ago (2016-01-06 19:30:08 UTC) #15
Dan Beam
https://codereview.chromium.org/1487283005/diff/40001/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc File chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc (right): https://codereview.chromium.org/1487283005/diff/40001/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc#newcode502 chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc:502: if (url.host() == "sync-confirmation") why are you not using ...
4 years, 11 months ago (2016-01-06 22:57:58 UTC) #16
anthonyvd
Hello everyone, thanks a ton for the feedback. This new patchset addresses most of the ...
4 years, 11 months ago (2016-01-08 22:39:42 UTC) #18
Marc Treib
https://codereview.chromium.org/1487283005/diff/100001/chrome/browser/supervised_user/legacy/custodian_profile_downloader_service.h File chrome/browser/supervised_user/legacy/custodian_profile_downloader_service.h (right): https://codereview.chromium.org/1487283005/diff/100001/chrome/browser/supervised_user/legacy/custodian_profile_downloader_service.h#newcode35 chrome/browser/supervised_user/legacy/custodian_profile_downloader_service.h:35: unsigned int GetDesiredImageSideLength() const override; Using "unsigned" to mean ...
4 years, 11 months ago (2016-01-11 09:23:05 UTC) #19
anthonyvd
https://codereview.chromium.org/1487283005/diff/100001/chrome/browser/supervised_user/legacy/custodian_profile_downloader_service.h File chrome/browser/supervised_user/legacy/custodian_profile_downloader_service.h (right): https://codereview.chromium.org/1487283005/diff/100001/chrome/browser/supervised_user/legacy/custodian_profile_downloader_service.h#newcode35 chrome/browser/supervised_user/legacy/custodian_profile_downloader_service.h:35: unsigned int GetDesiredImageSideLength() const override; On 2016/01/11 09:23:05, Marc ...
4 years, 11 months ago (2016-01-11 17:05:35 UTC) #20
Marc Treib
https://codereview.chromium.org/1487283005/diff/100001/chrome/browser/supervised_user/legacy/custodian_profile_downloader_service.h File chrome/browser/supervised_user/legacy/custodian_profile_downloader_service.h (right): https://codereview.chromium.org/1487283005/diff/100001/chrome/browser/supervised_user/legacy/custodian_profile_downloader_service.h#newcode35 chrome/browser/supervised_user/legacy/custodian_profile_downloader_service.h:35: unsigned int GetDesiredImageSideLength() const override; On 2016/01/11 17:05:35, anthonyvd ...
4 years, 11 months ago (2016-01-11 17:27:28 UTC) #21
Dan Beam
https://codereview.chromium.org/1487283005/diff/140001/chrome/browser/resources/sync_confirmation/sync_confirmation.css File chrome/browser/resources/sync_confirmation/sync_confirmation.css (right): https://codereview.chromium.org/1487283005/diff/140001/chrome/browser/resources/sync_confirmation/sync_confirmation.css#newcode6 chrome/browser/resources/sync_confirmation/sync_confirmation.css:6: font-family: 'Roboto Regular', 'Helvetica Neue', 'Lucida Grande', sans-serif; did ...
4 years, 11 months ago (2016-01-13 23:45:23 UTC) #22
anthonyvd
https://codereview.chromium.org/1487283005/diff/140001/chrome/browser/resources/sync_confirmation/sync_confirmation.css File chrome/browser/resources/sync_confirmation/sync_confirmation.css (right): https://codereview.chromium.org/1487283005/diff/140001/chrome/browser/resources/sync_confirmation/sync_confirmation.css#newcode6 chrome/browser/resources/sync_confirmation/sync_confirmation.css:6: font-family: 'Roboto Regular', 'Helvetica Neue', 'Lucida Grande', sans-serif; On ...
4 years, 11 months ago (2016-01-18 21:40:08 UTC) #23
Dan Beam
https://codereview.chromium.org/1487283005/diff/60001/chrome/browser/resources/sync_confirmation/sync_confirmation.css File chrome/browser/resources/sync_confirmation/sync_confirmation.css (right): https://codereview.chromium.org/1487283005/diff/60001/chrome/browser/resources/sync_confirmation/sync_confirmation.css#newcode7 chrome/browser/resources/sync_confirmation/sync_confirmation.css:7: font-family: 'Roboto Regular', 'Helvetica Neue', 'Lucida Grande', sans-serif; On ...
4 years, 11 months ago (2016-01-21 03:57:33 UTC) #24
anthonyvd
Thanks for the feedback, here's a patchset that addresses it. https://codereview.chromium.org/1487283005/diff/60001/chrome/browser/resources/sync_confirmation/sync_confirmation.css File chrome/browser/resources/sync_confirmation/sync_confirmation.css (right): https://codereview.chromium.org/1487283005/diff/60001/chrome/browser/resources/sync_confirmation/sync_confirmation.css#newcode7 ...
4 years, 11 months ago (2016-01-21 22:36:11 UTC) #25
Dan Beam
https://codereview.chromium.org/1487283005/diff/60001/chrome/browser/resources/sync_confirmation/sync_confirmation.css File chrome/browser/resources/sync_confirmation/sync_confirmation.css (right): https://codereview.chromium.org/1487283005/diff/60001/chrome/browser/resources/sync_confirmation/sync_confirmation.css#newcode86 chrome/browser/resources/sync_confirmation/sync_confirmation.css:86: left: 64px; On 2016/01/21 22:36:10, anthonyvd wrote: > On ...
4 years, 11 months ago (2016-01-22 01:26:58 UTC) #26
anthonyvd
I'm currently adding tests to the handler but here are my replies to the comments ...
4 years, 11 months ago (2016-01-22 17:19:57 UTC) #27
anthonyvd
Unit tests added. Thanks for taking a look at the comments in my previous reply ...
4 years, 11 months ago (2016-01-26 17:37:25 UTC) #28
Dan Beam
overall: looking good! https://codereview.chromium.org/1487283005/diff/240001/chrome/browser/ui/webui/signin/sync_confirmation_handler.cc File chrome/browser/ui/webui/signin/sync_confirmation_handler.cc (right): https://codereview.chromium.org/1487283005/diff/240001/chrome/browser/ui/webui/signin/sync_confirmation_handler.cc#newcode65 chrome/browser/ui/webui/signin/sync_confirmation_handler.cc:65: if (accounts.size() == 0) nit: if ...
4 years, 11 months ago (2016-01-26 19:54:20 UTC) #29
anthonyvd
Thanks for taking a look. Comments addressed! https://codereview.chromium.org/1487283005/diff/240001/chrome/browser/ui/webui/signin/sync_confirmation_handler.cc File chrome/browser/ui/webui/signin/sync_confirmation_handler.cc (right): https://codereview.chromium.org/1487283005/diff/240001/chrome/browser/ui/webui/signin/sync_confirmation_handler.cc#newcode65 chrome/browser/ui/webui/signin/sync_confirmation_handler.cc:65: if (accounts.size() ...
4 years, 11 months ago (2016-01-26 22:00:39 UTC) #30
Dan Beam
lgtm https://codereview.chromium.org/1487283005/diff/240001/chrome/browser/ui/webui/signin/sync_confirmation_handler_unittest.cc File chrome/browser/ui/webui/signin/sync_confirmation_handler_unittest.cc (right): https://codereview.chromium.org/1487283005/diff/240001/chrome/browser/ui/webui/signin/sync_confirmation_handler_unittest.cc#newcode27 chrome/browser/ui/webui/signin/sync_confirmation_handler_unittest.cc:27: const int kExpectedProfileImageSize = 128; On 2016/01/26 22:00:39, ...
4 years, 11 months ago (2016-01-26 22:40:51 UTC) #31
achuithb
On 2016/01/08 22:39:42, anthonyvd wrote: > Hello everyone, thanks a ton for the feedback. > ...
4 years, 11 months ago (2016-01-26 22:49:26 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1487283005/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1487283005/260001
4 years, 11 months ago (2016-01-27 14:26:25 UTC) #35
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/84983) ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 11 months ago (2016-01-27 14:28:58 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1487283005/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1487283005/320001
4 years, 11 months ago (2016-01-27 22:40:02 UTC) #40
commit-bot: I haz the power
Committed patchset #17 (id:320001)
4 years, 11 months ago (2016-01-27 23:06:34 UTC) #41
commit-bot: I haz the power
Patchset 17 (id:??) landed as https://crrev.com/72d9ed4e1e5a1b1c174958dce3d4b8b7a5402e67 Cr-Commit-Position: refs/heads/master@{#371907}
4 years, 11 months ago (2016-01-27 23:07:55 UTC) #43
Dan Beam
4 years, 9 months ago (2016-03-04 00:26:48 UTC) #44
Message was sent while issue was closed.
https://codereview.chromium.org/1487283005/diff/200001/chrome/browser/resourc...
File chrome/browser/resources/sync_confirmation/sync_confirmation.css (right):

https://codereview.chromium.org/1487283005/diff/200001/chrome/browser/resourc...
chrome/browser/resources/sync_confirmation/sync_confirmation.css:6: font-size:
100%;
On 2016/01/22 17:19:56, anthonyvd wrote:
> On 2016/01/22 01:26:58, Dan Beam wrote:
> > wait, why are you doing this?  to override this rule?
> >
>
https://code.google.com/p/chromium/codesearch#chromium/src/ui/webui/resources...
> 
> Yes, although I should have adjusted my em values instead, my bad!
> 
> This goes back to our discussion about font size though. Since increasing the
> font size makes the dialog unuseable (since it doesn't resize), should
font-size
> values be in px instead of em?

i think the <body> (default font-size) should be 81.25% (equivalent to 0.8125em)
and anything bigger should multiple up (i.e. 150%)

Powered by Google App Engine
This is Rietveld 408576698