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

Issue 6690020: sync: hook up ServerConnectionManager <> SyncerThread2 and tie up more loose ends (Closed)

Created:
9 years, 9 months ago by tim (not reviewing)
Modified:
9 years, 6 months ago
CC:
chromium-reviews, ncarter (slow), idana, Raghu Simha, cbentzel+watch_chromium.org, darin-cc_chromium.org, tim (not reviewing), Paweł Hajdan Jr., Andrew T Wilson (Slow)
Visibility:
Public.

Description

sync: hook up ServerConnectionManager <> SyncerThread2 and tie up more loose ends This permits the thread to initiate syncing by waiting for valid network connectivity. Adds a callback to SyncerThread2::Start to learn when config mode has started. Makes ConfigureDataTypes asynchronous to allow waiting for config mode to have started. As a result of this, passing --new-syncer-thread on the command line actually works and doesn't crash (too much!) BUG=26339 TEST=SyncerThread2Test Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=79717

Patch Set 1 : init #

Patch Set 2 : test #

Patch Set 3 : rebase #

Total comments: 22

Patch Set 4 : test #

Patch Set 5 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+426 lines, -163 lines) Patch
M chrome/browser/sync/engine/all_status.cc View 1 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/sync/engine/cleanup_disabled_types_command_unittest.cc View 1 1 chunk +0 lines, -12 lines 0 comments Download
M chrome/browser/sync/engine/model_safe_worker.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/engine/net/server_connection_manager.h View 5 chunks +24 lines, -0 lines 0 comments Download
M chrome/browser/sync/engine/net/server_connection_manager.cc View 5 chunks +23 lines, -4 lines 0 comments Download
M chrome/browser/sync/engine/syncapi.h View 1 2 3 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/sync/engine/syncapi.cc View 1 2 3 7 chunks +38 lines, -9 lines 0 comments Download
M chrome/browser/sync/engine/syncer.cc View 1 2 chunks +3 lines, -8 lines 0 comments Download
M chrome/browser/sync/engine/syncer_end_command.cc View 1 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/sync/engine/syncer_thread2.h View 1 2 3 10 chunks +31 lines, -7 lines 0 comments Download
M chrome/browser/sync/engine/syncer_thread2.cc View 1 2 3 8 chunks +83 lines, -13 lines 0 comments Download
M chrome/browser/sync/engine/syncer_thread2_unittest.cc View 1 2 3 25 chunks +69 lines, -30 lines 0 comments Download
M chrome/browser/sync/engine/syncer_thread_adapter.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/engine/syncer_types.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/sync/engine/update_applicator.cc View 1 1 chunk +13 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.h View 1 2 3 5 chunks +26 lines, -12 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.cc View 1 2 3 4 7 chunks +88 lines, -49 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 3 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/test/sync/engine/mock_connection_manager.cc View 1 3 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
tim (not reviewing)
Hey guys You should both feel free to review everything, but to try and make ...
9 years, 9 months ago (2011-03-24 23:25:59 UTC) #1
tim (not reviewing)
+atwilson FYI Also note that some bugs need to be filed for future work - ...
9 years, 9 months ago (2011-03-24 23:28:27 UTC) #2
Nicolas Zea
http://codereview.chromium.org/6690020/diff/12001/chrome/browser/sync/engine/syncapi.cc File chrome/browser/sync/engine/syncapi.cc (right): http://codereview.chromium.org/6690020/diff/12001/chrome/browser/sync/engine/syncapi.cc#newcode2149 chrome/browser/sync/engine/syncapi.cc:2149: sync_manager_->RequestNudge(); Do we make a new connection to the ...
9 years, 9 months ago (2011-03-25 18:53:03 UTC) #3
lipalani1
My initial set of feedback. Rest looks good actually. But once you have answered/addressed this ...
9 years, 9 months ago (2011-03-25 23:18:30 UTC) #4
tim (not reviewing)
thanks for the attentive review. will post updated patch set soon, just addressed some Qs ...
9 years, 9 months ago (2011-03-27 19:23:19 UTC) #5
tim (not reviewing)
http://codereview.chromium.org/6690020/diff/12001/chrome/browser/sync/engine/syncapi.cc File chrome/browser/sync/engine/syncapi.cc (right): http://codereview.chromium.org/6690020/diff/12001/chrome/browser/sync/engine/syncapi.cc#newcode2149 chrome/browser/sync/engine/syncapi.cc:2149: sync_manager_->RequestNudge(); On 2011/03/25 18:53:03, nzea wrote: > Do we ...
9 years, 9 months ago (2011-03-28 20:02:25 UTC) #6
tim (not reviewing)
9 years, 9 months ago (2011-03-28 20:03:06 UTC) #7
Nicolas Zea
LGTM
9 years, 9 months ago (2011-03-28 20:13:51 UTC) #8
lipalani
CIL On Sun, Mar 27, 2011 at 3:23 PM, <tim@chromium.org> wrote: > thanks for the ...
9 years, 9 months ago (2011-03-28 20:59:32 UTC) #9
tim (not reviewing)
(fyi prefer replying using the tool when possible 'cause it's easier to continue the conversation ...
9 years, 9 months ago (2011-03-28 21:58:14 UTC) #10
lipalani1
Cool. Are you planning on sending a review for the other pending feedback? thanks! regards, ...
9 years, 9 months ago (2011-03-28 23:46:21 UTC) #11
tim (not reviewing)
The 'reachable' part is exposed in about:sync currently (see AllStatus for how that's wired up). ...
9 years, 9 months ago (2011-03-29 15:22:05 UTC) #12
lipalani1
9 years, 9 months ago (2011-03-29 15:26:56 UTC) #13
Yeah I think the parity part makes sense. 
LGTM from my side I think!
On 2011/03/29 15:22:05, timsteele wrote:
> The 'reachable' part is exposed in about:sync currently (see AllStatus for how
> that's wired up).  The code in here is used to figure out if sync can't move
> forward and should just wait for something to happen. E.g. if we get any of
the
> other codes (like IO_ERROR or SYNC_SERVER_ERROR), here, we treat them as
> transient errors and don't modify the sync online/offline-ness.  Does that
make
> sense?  Even if we wanted to change it, I want to keep parity with the old
> syncer thread for this checkin.

Powered by Google App Engine
This is Rietveld 408576698