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

Issue 11348220: sync: centralize sync startup decisions in TryStart. (Closed)

Created:
8 years ago by tim (not reviewing)
Modified:
8 years ago
CC:
chromium-reviews, Raghu Simha, haitaol1, akalin, tim (not reviewing)
Visibility:
Public.

Description

sync: centralize sync startup decisions in TryStart. Also addresses an issue on Chrome OS where we'd unnecessarily spin up the DataTypeManager if the user cancelled out of a sync setup (after a dashboard clear), and adds some comments. Lastly some tests were firing TOKEN_LOADING_FINISHED on a fake / mock TokenService, but calling TokensLoadedFromDB was still returning false -- fixed that (needed for this patch). BUG=80194, 128692 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170576

Patch Set 1 #

Patch Set 2 : comments + tests #

Patch Set 3 : take 2 #

Total comments: 4

Patch Set 4 : zea's review #

Total comments: 12

Patch Set 5 : reviews #

Total comments: 4

Patch Set 6 : ui review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -59 lines) Patch
M chrome/browser/signin/token_service.h View 1 2 3 4 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 3 chunks +31 lines, -43 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_mock.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_startup_unittest.cc View 1 2 3 4 4 chunks +26 lines, -10 lines 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler.cc View 1 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler_unittest.cc View 1 2 3 4 5 4 chunks +43 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
tim (not reviewing)
Drew, please review! Kochi & Raghu - please sanity my chrome os comments in sync_setup_handler ...
8 years ago (2012-11-27 08:07:18 UTC) #1
kochi
Tim, could you try git cl upload again? On the patch set 2, the unified ...
8 years ago (2012-11-29 07:54:37 UTC) #2
tim (not reviewing)
re-uploaded! hope that works. zea@, can you take over for atwilson?
8 years ago (2012-11-29 16:42:48 UTC) #3
Nicolas Zea
LGTM https://chromiumcodereview.appspot.com/11348220/diff/10014/chrome/browser/signin/token_service.h File chrome/browser/signin/token_service.h (right): https://chromiumcodereview.appspot.com/11348220/diff/10014/chrome/browser/signin/token_service.h#newcode199 chrome/browser/signin/token_service.h:199: protected: newline above https://chromiumcodereview.appspot.com/11348220/diff/10014/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://chromiumcodereview.appspot.com/11348220/diff/10014/chrome/browser/sync/profile_sync_service.cc#newcode274 ...
8 years ago (2012-11-29 19:43:08 UTC) #4
tim (not reviewing)
Thanks! I'll wait to let Kochi take a better look at it before committing. https://chromiumcodereview.appspot.com/11348220/diff/10014/chrome/browser/signin/token_service.h ...
8 years ago (2012-11-29 21:00:33 UTC) #5
kochi
lgtm with nits. https://chromiumcodereview.appspot.com/11348220/diff/7004/chrome/browser/signin/token_service.cc File chrome/browser/signin/token_service.cc (right): https://chromiumcodereview.appspot.com/11348220/diff/7004/chrome/browser/signin/token_service.cc#newcode196 chrome/browser/signin/token_service.cc:196: } Why not inline (define in ...
8 years ago (2012-11-30 07:42:01 UTC) #6
Andrew T Wilson (Slow)
LGTM with nits. https://chromiumcodereview.appspot.com/11348220/diff/7004/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://chromiumcodereview.appspot.com/11348220/diff/7004/chrome/browser/sync/profile_sync_service.cc#newcode274 chrome/browser/sync/profile_sync_service.cc:274: // Make sure it's safe to ...
8 years ago (2012-11-30 14:52:14 UTC) #7
tim (not reviewing)
Thanks guys. Comments addressed. Will check the CQ box. https://chromiumcodereview.appspot.com/11348220/diff/7004/chrome/browser/signin/token_service.cc File chrome/browser/signin/token_service.cc (right): https://chromiumcodereview.appspot.com/11348220/diff/7004/chrome/browser/signin/token_service.cc#newcode196 chrome/browser/signin/token_service.cc:196: ...
8 years ago (2012-11-30 18:51:13 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/11348220/2005
8 years ago (2012-11-30 18:52:33 UTC) #9
commit-bot: I haz the power
Presubmit check for 11348220-2005 failed and returned exit status 1. Running presubmit commit checks ...
8 years ago (2012-11-30 18:52:36 UTC) #10
tim (not reviewing)
Howdy James, could I get an OWNERS review for ui/webui/*?
8 years ago (2012-11-30 19:48:46 UTC) #11
James Hawkins
LGTM with nits. https://chromiumcodereview.appspot.com/11348220/diff/2005/chrome/browser/ui/webui/sync_setup_handler_unittest.cc File chrome/browser/ui/webui/sync_setup_handler_unittest.cc (right): https://chromiumcodereview.appspot.com/11348220/diff/2005/chrome/browser/ui/webui/sync_setup_handler_unittest.cc#newcode501 chrome/browser/ui/webui/sync_setup_handler_unittest.cc:501: // kick off initialization, but not ...
8 years ago (2012-11-30 19:54:08 UTC) #12
tim (not reviewing)
Thanks! Addressed comments, trying CQ again. https://chromiumcodereview.appspot.com/11348220/diff/2005/chrome/browser/ui/webui/sync_setup_handler_unittest.cc File chrome/browser/ui/webui/sync_setup_handler_unittest.cc (right): https://chromiumcodereview.appspot.com/11348220/diff/2005/chrome/browser/ui/webui/sync_setup_handler_unittest.cc#newcode501 chrome/browser/ui/webui/sync_setup_handler_unittest.cc:501: // kick off ...
8 years ago (2012-11-30 20:08:08 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/11348220/5008
8 years ago (2012-11-30 20:08:47 UTC) #14
commit-bot: I haz the power
8 years ago (2012-11-30 22:25:56 UTC) #15
Message was sent while issue was closed.
Change committed as 170576

Powered by Google App Engine
This is Rietveld 408576698