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

Issue 553015: Support for multiple sync ModelSafeWorkers.... (Closed)

Created:
10 years, 11 months ago by tim (not reviewing)
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, ben+cc_chromium.org, ncarter (slow), Paweł Hajdan Jr., idana, albertb, skrul
Visibility:
Public.

Description

Support for multiple sync ModelSafeWorkers. - Introduce an equivalence class enum to group sync model types that live on the same chrome native model together. - Remove ModelSafeWorkerBridge as it is no longer needed. - Rename BookmarkModelWorker -> UIModelWorker, and make it use the new stuff. - Allow syncable entries belonging to an "unsynced" model type to be just processed "passively" from the SyncerThread (rather than dispatching), and allow this to change as a result of enable/disabling. - Experimenting with a way to complete issue 31909 (the CLASS_UNASSOCIATED stuff). BUG=31925, 31911, 31909 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=36835

Patch Set 1 : apply depot_tools patch for try #

Patch Set 2 : try try try again #

Patch Set 3 : Forgot to include test files in patch #

Total comments: 26

Patch Set 4 : post-review snapshot #

Patch Set 5 : comment only changes #

Patch Set 6 : Removed SyncDataType #

Total comments: 16

Patch Set 7 : '' #

Total comments: 1

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+401 lines, -717 lines) Patch
M chrome/browser/sync/engine/apply_updates_command_unittest.cc View 3 4 5 6 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/sync/engine/model_changing_syncer_command.cc View 1 2 3 1 chunk +8 lines, -2 lines 0 comments Download
M chrome/browser/sync/engine/model_safe_worker.h View 1 2 3 2 chunks +47 lines, -8 lines 0 comments Download
M chrome/browser/sync/engine/process_updates_command.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/sync/engine/syncapi.h View 1 4 chunks +5 lines, -29 lines 0 comments Download
M chrome/browser/sync/engine/syncapi.cc View 1 8 chunks +7 lines, -60 lines 0 comments Download
M chrome/browser/sync/engine/syncer_thread_unittest.cc View 3 4 chunks +16 lines, -2 lines 0 comments Download
M chrome/browser/sync/engine/syncer_types.h View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/sync/engine/syncer_unittest.cc View 3 4 chunks +17 lines, -3 lines 0 comments Download
M chrome/browser/sync/engine/syncer_util.h View 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/sync/engine/syncer_util.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/sync/engine/verify_updates_command.cc View 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/sync/glue/bookmark_model_worker.h View 1 1 chunk +0 lines, -138 lines 0 comments Download
D chrome/browser/sync/glue/bookmark_model_worker.cc View 1 1 chunk +0 lines, -107 lines 0 comments Download
D chrome/browser/sync/glue/bookmark_model_worker_unittest.cc View 1 1 chunk +0 lines, -221 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.h View 1 2 3 4 5 6 7 9 chunks +41 lines, -15 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.cc View 1 2 3 4 5 6 7 10 chunks +57 lines, -11 lines 0 comments Download
A + chrome/browser/sync/glue/ui_model_worker.h View 1 2 3 4 5 6 4 chunks +32 lines, -31 lines 0 comments Download
A + chrome/browser/sync/glue/ui_model_worker.cc View 1 2 3 4 5 6 7 6 chunks +19 lines, -20 lines 0 comments Download
A + chrome/browser/sync/glue/ui_model_worker_unittest.cc View 11 chunks +37 lines, -36 lines 0 comments Download
M chrome/browser/sync/sessions/sync_session.h View 1 2 3 4 5 6 5 chunks +34 lines, -0 lines 0 comments Download
M chrome/browser/sync/sessions/sync_session.cc View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/browser/sync/sessions/sync_session_context.h View 1 2 3 4 4 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/sync/sessions/sync_session_unittest.cc View 3 3 chunks +8 lines, -3 lines 0 comments Download
A chrome/browser/sync/syncable/model_type.h View 1 2 3 4 5 6 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
tim (not reviewing)
This is ready for a look. I'm fighting with the try server because of a ...
10 years, 11 months ago (2010-01-19 02:06:24 UTC) #1
tim (not reviewing)
CC'ing skrul and albertb FYI
10 years, 11 months ago (2010-01-19 22:10:37 UTC) #2
ncarter (slow)
http://codereview.chromium.org/553015/diff/2060/2077 File chrome/browser/sync/engine/apply_updates_command_unittest.cc (right): http://codereview.chromium.org/553015/diff/2060/2077#newcode48 chrome/browser/sync/engine/apply_updates_command_unittest.cc:48: virtual void GetWorkers(std::vector<ModelSafeWorker*>* out) {} // ModelSafeWorkerRegistrar implementation. http://codereview.chromium.org/553015/diff/2060/2073 ...
10 years, 11 months ago (2010-01-20 19:27:33 UTC) #3
tim (not reviewing)
Removed GROUP_UNASSOCIATED since it wasn't used currently and I think Nick convinced me it is ...
10 years, 11 months ago (2010-01-21 00:04:25 UTC) #4
tim (not reviewing)
> I also moved it to syncable (keep it close to ModelType), and so the ...
10 years, 11 months ago (2010-01-21 00:05:39 UTC) #5
tim (not reviewing)
> Well, here's the thing. I don't know for sure, but I have a hunch ...
10 years, 11 months ago (2010-01-21 00:09:43 UTC) #6
tim (not reviewing)
One last thing, I replaced SyncDataType with ModelType; those changes on their own are visible ...
10 years, 11 months ago (2010-01-21 06:27:01 UTC) #7
ncarter (slow)
LGTM with the following addressed. http://codereview.chromium.org/553015/diff/5010/10017 File chrome/browser/sync/engine/apply_updates_command_unittest.cc (right): http://codereview.chromium.org/553015/diff/5010/10017#newcode47 chrome/browser/sync/engine/apply_updates_command_unittest.cc:47: // ModelSafeWorkerRegistrar implementation. http://codereview.chromium.org/553015/diff/5010/10020 ...
10 years, 11 months ago (2010-01-21 18:16:39 UTC) #8
tim (not reviewing)
http://codereview.chromium.org/553015/diff/5010/10017 File chrome/browser/sync/engine/apply_updates_command_unittest.cc (right): http://codereview.chromium.org/553015/diff/5010/10017#newcode47 chrome/browser/sync/engine/apply_updates_command_unittest.cc:47: On 2010/01/21 18:16:39, nick wrote: > // ModelSafeWorkerRegistrar implementation. ...
10 years, 11 months ago (2010-01-21 19:28:06 UTC) #9
Munjal (Google)
10 years, 11 months ago (2010-01-22 00:27:59 UTC) #10
One nit I stumbled upon.

http://codereview.chromium.org/553015/diff/1038/2110
File chrome/browser/sync/glue/ui_model_worker.cc (right):

http://codereview.chromium.org/553015/diff/1038/2110#newcode21
chrome/browser/sync/glue/ui_model_worker.cc:21: DLOG(WARNING) <<
"CallDoWorkFromModelSafeThreadAndWait called from "
Change CallDoWorkFromModelSafeThreadAndWait to oWorkAndWaitUntilDone

Powered by Google App Engine
This is Rietveld 408576698