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

Issue 130193002: sync: Consistently refcount ModelSafeWorkers (Closed)

Created:
6 years, 11 months ago by rlarocque
Modified:
6 years, 11 months ago
Reviewers:
haitaol1
CC:
chromium-reviews, tim+watch_chromium.org, rsimha+watch_chromium.org, haitaol+watch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

sync: Consistently refcount ModelSafeWorkers Certain interfaces in sync had signatures that included vectors of raw pointers to ModelSafeWorkers. The use of raw pointers to refcounted objects looks a lot like a bug waiting to happen. This CL replaces any use of std::vector<ModelSafeWorker*> with std::vector<scoped_refptr<ModelSafeWorker> >. This is not expected to alter sync behavior in any significant way. BUG=332251 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=244329

Patch Set 1 #

Patch Set 2 : template >> fixes #

Patch Set 3 : Fix standalone sync client #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -62 lines) Patch
M chrome/browser/sync/glue/sync_backend_host_core.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_core.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/sync_backend_registrar.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/sync_backend_registrar.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/sync_backend_registrar_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M sync/engine/sync_scheduler_unittest.cc View 2 chunks +2 lines, -8 lines 0 comments Download
M sync/engine/syncer_unittest.cc View 3 chunks +4 lines, -10 lines 0 comments Download
M sync/internal_api/internal_components_factory_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/public/internal_components_factory.h View 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/public/internal_components_factory_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/public/sync_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/public/test/fake_sync_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/public/test/test_internal_components_factory.h View 1 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/sync_manager_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/sync_manager_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/sync_manager_impl_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M sync/internal_api/test/fake_sync_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/test/test_internal_components_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M sync/sessions/sync_session_context.h View 1 chunk +11 lines, -10 lines 0 comments Download
M sync/sessions/sync_session_context.cc View 1 chunk +1 line, -1 line 0 comments Download
M sync/sessions/sync_session_unittest.cc View 2 chunks +1 line, -11 lines 0 comments Download
M sync/tools/sync_client.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
rlarocque
Here's the patch to fix the ModelSafeWorker issue pointed out in https://codereview.chromium.org/93433006/. Haitao: Please review.
6 years, 11 months ago (2014-01-09 22:47:54 UTC) #1
haitaol1
On 2014/01/09 22:47:54, rlarocque wrote: > Here's the patch to fix the ModelSafeWorker issue pointed ...
6 years, 11 months ago (2014-01-10 18:15:11 UTC) #2
rlarocque
On 2014/01/10 18:15:11, haitaol1 wrote: > On 2014/01/09 22:47:54, rlarocque wrote: > > Here's the ...
6 years, 11 months ago (2014-01-10 18:42:02 UTC) #3
rlarocque
On 2014/01/10 18:42:02, rlarocque wrote: > On 2014/01/10 18:15:11, haitaol1 wrote: > > On 2014/01/09 ...
6 years, 11 months ago (2014-01-10 18:43:57 UTC) #4
haitaol1
On 2014/01/10 18:43:57, rlarocque wrote: > On 2014/01/10 18:42:02, rlarocque wrote: > > On 2014/01/10 ...
6 years, 11 months ago (2014-01-10 19:40:17 UTC) #5
haitaol1
I still believe it's unnecessary to pass ref-counted objects on stack. But if that's the ...
6 years, 11 months ago (2014-01-10 22:34:19 UTC) #6
rlarocque
On 2014/01/10 22:34:19, haitaol1 wrote: > I still believe it's unnecessary to pass ref-counted objects ...
6 years, 11 months ago (2014-01-10 22:49:51 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/130193002/250001
6 years, 11 months ago (2014-01-10 23:27:29 UTC) #8
commit-bot: I haz the power
6 years, 11 months ago (2014-01-11 03:11:12 UTC) #9
Message was sent while issue was closed.
Change committed as 244329

Powered by Google App Engine
This is Rietveld 408576698