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

Issue 9956097: suppress user/password dialog when re-enabling sync (Closed)

Created:
8 years, 8 months ago by kochi
Modified:
8 years, 8 months ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), arv (Not doing code reviews), akalin, tim (not reviewing)
Visibility:
Public.

Description

On ChromeOS, the user is always signed in and we should not show user/password dialog when re-enabling sync. BUG=chromium-os:27955, chromium-os:27956, chromium:121563 TEST=manual, unit_tests --gtest_filter="*Sync*" Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=130722

Patch Set 1 #

Patch Set 2 : aaa #

Patch Set 3 : update #

Total comments: 30

Patch Set 4 : Don't SignOut() #

Patch Set 5 : Spare Bootstrap token. #

Total comments: 10

Patch Set 6 : resolve Drew's comments. #

Total comments: 16

Patch Set 7 : resolve Nicolas's comments. #

Total comments: 8

Patch Set 8 : Resolve Drew's comments. #

Total comments: 1

Patch Set 9 : Resolve Nicolas's comments. #

Total comments: 8

Patch Set 10 : style nit. #

Total comments: 3

Patch Set 11 : rebase to ToT. #

Patch Set 12 : ifdef OS_CHROMEOS guards. #

Patch Set 13 : suppress SyncSetupHandlerTest.HandleFatalError #

Patch Set 14 : Fix unittest compilation warning. #

Patch Set 15 : Another OS_CHROMEOS guard for compilation. #

Patch Set 16 : More OS_CHROMEOS guard for compilation. #

Total comments: 12

Patch Set 17 : fix for comments. #

Patch Set 18 : rebase. #

Total comments: 2

Patch Set 19 : Resolve rebase glitch. #

Patch Set 20 : exclude new unittest on cros. #

Patch Set 21 : disable failing unittests only for cros for now #

Patch Set 22 : Move suppression from PSS to SyncSetupHandler, reenabling PSS unittests. #

Patch Set 23 : Add TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -17 lines) Patch
M chrome/browser/resources/sync_setup_overlay.html View 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/resources/sync_setup_overlay.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/signin/signin_tracker.h View 1 2 3 4 5 3 chunks +10 lines, -7 lines 0 comments Download
M chrome/browser/signin/signin_tracker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +20 lines, -6 lines 0 comments Download
M chrome/browser/signin/signin_tracker_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +28 lines, -0 lines 0 comments Download
M chrome/browser/sync/sync_prefs.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/sync/sync_prefs.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +18 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler.h View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 6 chunks +44 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 9 chunks +13 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Andrew T Wilson (Slow)
Looks like you're mostly on the right track on the UI side. The bootstrap token ...
8 years, 8 months ago (2012-04-03 17:45:13 UTC) #1
Nicolas Zea
http://codereview.chromium.org/9956097/diff/2008/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): http://codereview.chromium.org/9956097/diff/2008/chrome/browser/sync/profile_sync_service.cc#newcode407 chrome/browser/sync/profile_sync_service.cc:407: CreateBackend(); Right before this is where you should probably ...
8 years, 8 months ago (2012-04-03 21:00:33 UTC) #2
kochi
Resolving initial review comments from Andrew. https://chromiumcodereview.appspot.com/9956097/diff/3001/chrome/browser/signin/signin_manager.h File chrome/browser/signin/signin_manager.h (right): https://chromiumcodereview.appspot.com/9956097/diff/3001/chrome/browser/signin/signin_manager.h#newcode132 chrome/browser/signin/signin_manager.h:132: const std::string& convenient_password() ...
8 years, 8 months ago (2012-04-03 21:55:29 UTC) #3
Andrew T Wilson (Slow)
Getting pretty close - nice work on this. https://chromiumcodereview.appspot.com/9956097/diff/1022/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://chromiumcodereview.appspot.com/9956097/diff/1022/chrome/browser/sync/profile_sync_service.cc#newcode1095 chrome/browser/sync/profile_sync_service.cc:1095: sync_api::WriteTransaction ...
8 years, 8 months ago (2012-04-03 22:22:33 UTC) #4
kochi
https://chromiumcodereview.appspot.com/9956097/diff/2008/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://chromiumcodereview.appspot.com/9956097/diff/2008/chrome/browser/sync/profile_sync_service.cc#newcode407 chrome/browser/sync/profile_sync_service.cc:407: CreateBackend(); On 2012/04/03 21:00:33, nzea wrote: > Right before ...
8 years, 8 months ago (2012-04-03 22:45:43 UTC) #5
Nicolas Zea
almost there! https://chromiumcodereview.appspot.com/9956097/diff/5004/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): https://chromiumcodereview.appspot.com/9956097/diff/5004/chrome/browser/sync/glue/sync_backend_host.cc#newcode357 chrome/browser/sync/glue/sync_backend_host.cc:357: can revert this file https://chromiumcodereview.appspot.com/9956097/diff/5004/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc ...
8 years, 8 months ago (2012-04-03 22:54:21 UTC) #6
kochi
https://chromiumcodereview.appspot.com/9956097/diff/1022/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://chromiumcodereview.appspot.com/9956097/diff/1022/chrome/browser/sync/profile_sync_service.cc#newcode1095 chrome/browser/sync/profile_sync_service.cc:1095: sync_api::WriteTransaction trans(FROM_HERE, GetUserShare()); Done as Nicolas suggested. On 2012/04/03 ...
8 years, 8 months ago (2012-04-03 23:21:48 UTC) #7
kochi
https://chromiumcodereview.appspot.com/9956097/diff/5004/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): https://chromiumcodereview.appspot.com/9956097/diff/5004/chrome/browser/sync/glue/sync_backend_host.cc#newcode357 chrome/browser/sync/glue/sync_backend_host.cc:357: On 2012/04/03 22:54:21, nzea wrote: > can revert this ...
8 years, 8 months ago (2012-04-03 23:35:46 UTC) #8
Nicolas Zea
PSS/sync_prefs/pref_names LGTM with nits/once everything is conditioned appropriately on CHROMEOS and trybots like it https://chromiumcodereview.appspot.com/9956097/diff/4036/chrome/common/pref_names.cc ...
8 years, 8 months ago (2012-04-03 23:47:20 UTC) #9
Andrew T Wilson (Slow)
LGTM once trybots are happy (and you've verified behavior on cros) https://chromiumcodereview.appspot.com/9956097/diff/4038/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): ...
8 years, 8 months ago (2012-04-03 23:56:53 UTC) #10
kochi
+jhawkins in reviewers for OWNERS lgtm https://chromiumcodereview.appspot.com/9956097/diff/1045/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://chromiumcodereview.appspot.com/9956097/diff/1045/chrome/browser/sync/profile_sync_service.cc#newcode401 chrome/browser/sync/profile_sync_service.cc:401: std::string bootstrap_token = ...
8 years, 8 months ago (2012-04-04 00:10:20 UTC) #11
Andrew T Wilson (Slow)
https://chromiumcodereview.appspot.com/9956097/diff/4038/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://chromiumcodereview.appspot.com/9956097/diff/4038/chrome/browser/sync/profile_sync_service.cc#newcode36 chrome/browser/sync/profile_sync_service.cc:36: #include "chrome/browser/sync/glue/chrome_encryptor.h" You're right. Apparently I can't read.
8 years, 8 months ago (2012-04-04 00:42:48 UTC) #12
kochi
The win_rel/linux_chromeos trybots failures are very unlikely related to this CL. win_rel's browser_tests failed many ...
8 years, 8 months ago (2012-04-04 05:27:58 UTC) #13
Andrew T Wilson (Slow)
https://chromiumcodereview.appspot.com/9956097/diff/4061/chrome/browser/ui/webui/sync_setup_handler.cc File chrome/browser/ui/webui/sync_setup_handler.cc (right): https://chromiumcodereview.appspot.com/9956097/diff/4061/chrome/browser/ui/webui/sync_setup_handler.cc#newcode837 chrome/browser/ui/webui/sync_setup_handler.cc:837: service->UnsuppressAndStart(); So, if the user cancels out of the ...
8 years, 8 months ago (2012-04-04 16:52:10 UTC) #14
arv (Not doing code reviews)
LGTM My main concern is security here. I hope someone who knows the security implication ...
8 years, 8 months ago (2012-04-04 17:04:20 UTC) #15
kochi
Thanks for the review! http://chromiumcodereview.appspot.com/9956097/diff/4061/chrome/browser/resources/sync_setup_overlay.js File chrome/browser/resources/sync_setup_overlay.js (right): http://chromiumcodereview.appspot.com/9956097/diff/4061/chrome/browser/resources/sync_setup_overlay.js#newcode400 chrome/browser/resources/sync_setup_overlay.js:400: showSpinner_: function(args) { On 2012/04/04 ...
8 years, 8 months ago (2012-04-04 17:29:46 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kochi@chromium.org/9956097/13001
8 years, 8 months ago (2012-04-04 17:31:43 UTC) #17
commit-bot: I haz the power
Can't apply patch for file chrome/browser/ui/webui/sync_setup_handler.cc. While running patch -p1 --forward --force; patching file chrome/browser/ui/webui/sync_setup_handler.cc ...
8 years, 8 months ago (2012-04-04 17:31:49 UTC) #18
Andrew T Wilson (Slow)
http://codereview.chromium.org/9956097/diff/10017/chrome/browser/ui/webui/sync_setup_handler.cc File chrome/browser/ui/webui/sync_setup_handler.cc (right): http://codereview.chromium.org/9956097/diff/10017/chrome/browser/ui/webui/sync_setup_handler.cc#newcode837 chrome/browser/ui/webui/sync_setup_handler.cc:837: DisplayConfigureSync(true, false); I think this is wrong now. You ...
8 years, 8 months ago (2012-04-04 17:55:30 UTC) #19
kochi
http://chromiumcodereview.appspot.com/9956097/diff/10017/chrome/browser/ui/webui/sync_setup_handler.cc File chrome/browser/ui/webui/sync_setup_handler.cc (right): http://chromiumcodereview.appspot.com/9956097/diff/10017/chrome/browser/ui/webui/sync_setup_handler.cc#newcode837 chrome/browser/ui/webui/sync_setup_handler.cc:837: DisplayConfigureSync(true, false); On 2012/04/04 17:55:30, Andrew T Wilson wrote: ...
8 years, 8 months ago (2012-04-04 18:07:09 UTC) #20
Andrew T Wilson (Slow)
LGTM
8 years, 8 months ago (2012-04-04 18:11:59 UTC) #21
James Hawkins
8 years, 8 months ago (2012-04-04 19:56:52 UTC) #22
LGTM but all of these cros ifdefs have got to go at some point.

Powered by Google App Engine
This is Rietveld 408576698