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

Issue 10824252: Revert 150990 - [Sync] Avoid unregistering object IDs on shutdown (Closed)

Created:
8 years, 4 months ago by jeremya
Modified:
8 years, 4 months ago
Reviewers:
akalin
CC:
chromium-reviews, Raghu Simha, ncarter (slow), pam+watch_chromium.org, akalin, tim (not reviewing)
Visibility:
Public.

Description

Revert 150990 - [Sync] Avoid unregistering object IDs on shutdown Add RegisterHandler() and UnregisterHandler(), which should be called before and after calls to UpdateRegisteredIds(). Use UnregisterHandler() on shutdown instead of UpdateRegisteredIds(_, ObjectIdSet()). Make SyncNotifierHelper non-thread-safe. Fix test breakages that this revealed. Also add GetAllRegisteredIds() instead of making it the return value of UpdateRegisteredIds(). Propagate UpdateRegisteredIds()/RegisterHandler()/UnregisterHandler() all the way up to ProfileSyncService. Make FakeSyncManager be created on the sync thread. Clean up SyncBackendHost startup/shutdown behavior a bit. BUG=140325 Review URL: https://chromiumcodereview.appspot.com/10824161 TBR=akalin@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=150992

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -1066 lines) Patch
M chrome/browser/sync/glue/bridged_sync_notifier.h View 1 chunk +1 line, -5 lines 0 comments Download
M chrome/browser/sync/glue/bridged_sync_notifier.cc View 1 chunk +1 line, -15 lines 0 comments Download
M chrome/browser/sync/glue/bridged_sync_notifier_unittest.cc View 4 chunks +9 lines, -29 lines 0 comments Download
M chrome/browser/sync/glue/chrome_sync_notification_bridge.h View 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/sync/glue/chrome_sync_notification_bridge.cc View 8 chunks +8 lines, -62 lines 0 comments Download
M chrome/browser/sync/glue/chrome_sync_notification_bridge_unittest.cc View 4 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.h View 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.cc View 12 chunks +28 lines, -58 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_unittest.cc View 10 chunks +26 lines, -80 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 3 chunks +10 lines, -48 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 4 chunks +7 lines, -19 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_unittest.cc View 3 chunks +1 line, -3 lines 0 comments Download
M sync/internal_api/public/sync_manager.h View 1 chunk +2 lines, -9 lines 0 comments Download
M sync/internal_api/public/test/fake_sync_manager.h View 5 chunks +19 lines, -24 lines 0 comments Download
M sync/internal_api/sync_manager_impl.h View 1 chunk +0 lines, -4 lines 0 comments Download
M sync/internal_api/sync_manager_impl.cc View 3 chunks +5 lines, -25 lines 0 comments Download
M sync/internal_api/sync_manager_impl_unittest.cc View 4 chunks +2 lines, -19 lines 0 comments Download
M sync/internal_api/test/fake_sync_manager.cc View 5 chunks +17 lines, -39 lines 0 comments Download
M sync/notifier/invalidation_notifier.h View 3 chunks +2 lines, -4 lines 0 comments Download
M sync/notifier/invalidation_notifier.cc View 2 chunks +6 lines, -15 lines 0 comments Download
M sync/notifier/invalidation_notifier_unittest.cc View 6 chunks +12 lines, -13 lines 0 comments Download
M sync/notifier/non_blocking_invalidation_notifier.h View 4 chunks +2 lines, -6 lines 0 comments Download
M sync/notifier/non_blocking_invalidation_notifier.cc View 4 chunks +9 lines, -23 lines 0 comments Download
M sync/notifier/non_blocking_invalidation_notifier_unittest.cc View 3 chunks +5 lines, -8 lines 0 comments Download
M sync/notifier/p2p_notifier.h View 3 chunks +2 lines, -4 lines 0 comments Download
M sync/notifier/p2p_notifier.cc View 5 chunks +5 lines, -18 lines 0 comments Download
M sync/notifier/p2p_notifier_unittest.cc View 4 chunks +14 lines, -15 lines 0 comments Download
M sync/notifier/sync_notifier.h View 1 chunk +3 lines, -37 lines 0 comments Download
M sync/notifier/sync_notifier_factory_unittest.cc View 2 chunks +2 lines, -4 lines 0 comments Download
A + sync/notifier/sync_notifier_helper.h View 0 chunks +-1 lines, --1 lines 0 comments Download
A + sync/notifier/sync_notifier_helper.cc View 0 chunks +-1 lines, --1 lines 0 comments Download
A + sync/notifier/sync_notifier_helper_unittest.cc View 0 chunks +-1 lines, --1 lines 0 comments Download
D sync/notifier/sync_notifier_registrar.h View 1 chunk +0 lines, -82 lines 0 comments Download
D sync/notifier/sync_notifier_registrar.cc View 1 chunk +0 lines, -129 lines 0 comments Download
D sync/notifier/sync_notifier_registrar_unittest.cc View 1 chunk +0 lines, -248 lines 0 comments Download
M sync/sync.gyp View 2 chunks +3 lines, -3 lines 0 comments Download
M sync/tools/sync_listen_notifications.cc View 2 chunks +1 line, -4 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
jeremya
8 years, 4 months ago (2012-08-10 04:40:17 UTC) #1
jeremya
8 years, 4 months ago (2012-08-10 05:04:28 UTC) #2
Hi akalin,

This patch caused
ProfileSyncServiceTest.UpdateRegisteredInvalidationIdsPersistence to fail:
http://build.chromium.org/p/chromium/builders/Linux%20Tests%20x64/builds/25272

Please take a look :)

Thanks!


On Fri, Aug 10, 2012 at 2:40 PM, <jeremya@chromium.org> wrote:

> Reviewers: akalin,
>
> Description:
> Revert 150990 - [Sync] Avoid unregistering object IDs on shutdown
>
> Add RegisterHandler() and UnregisterHandler(), which should be called
> before and
> after calls to UpdateRegisteredIds().  Use UnregisterHandler() on
> shutdown instead of UpdateRegisteredIds(_, ObjectIdSet()).
>
> Make SyncNotifierHelper non-thread-safe.  Fix test breakages that this
> revealed.
>  Also add GetAllRegisteredIds() instead of making it the return value of
> UpdateRegisteredIds().
>
> Propagate UpdateRegisteredIds()/**RegisterHandler()/**UnregisterHandler()
> all
> the way up to ProfileSyncService.
>
> Make FakeSyncManager be created on the sync thread.
>
> Clean up SyncBackendHost startup/shutdown behavior a bit.
>
> BUG=140325
>
>
> Review URL:
https://chromiumcodereview.**appspot.com/10824161<https://chromiumcodereview....
>
> TBR=akalin@chromium.org
>
> Please review this at
https://chromiumcodereview.**appspot.com/10824252/<https://chromiumcodereview...
>
> SVN Base:
svn://svn.chromium.org/chrome/**trunk/src/<http://svn.chromium.org/chrome/trunk/src/>
>
> Affected files:
>   M     chrome/browser/sync/glue/**bridged_sync_notifier.h
>   M     chrome/browser/sync/glue/**bridged_sync_notifier.cc
>   M     chrome/browser/sync/glue/**bridged_sync_notifier_**unittest.cc
>   M     chrome/browser/sync/glue/**chrome_sync_notification_**bridge.h
>   M     chrome/browser/sync/glue/**chrome_sync_notification_**bridge.cc
>   M     chrome/browser/sync/glue/**chrome_sync_notification_**
> bridge_unittest.cc
>   M     chrome/browser/sync/glue/sync_**backend_host.h
>   M     chrome/browser/sync/glue/sync_**backend_host.cc
>   M     chrome/browser/sync/glue/sync_**backend_host_unittest.cc
>   M     chrome/browser/sync/profile_**sync_service.h
>   M     chrome/browser/sync/profile_**sync_service.cc
>   M     chrome/browser/sync/profile_**sync_service_unittest.cc
>   M     sync/internal_api/public/sync_**manager.h
>   M     sync/internal_api/public/test/**fake_sync_manager.h
>   M     sync/internal_api/sync_**manager_impl.h
>   M     sync/internal_api/sync_**manager_impl.cc
>   M     sync/internal_api/sync_**manager_impl_unittest.cc
>   M     sync/internal_api/test/fake_**sync_manager.cc
>   M     sync/notifier/invalidation_**notifier.h
>   M     sync/notifier/invalidation_**notifier.cc
>   M     sync/notifier/invalidation_**notifier_unittest.cc
>   M     sync/notifier/non_blocking_**invalidation_notifier.h
>   M     sync/notifier/non_blocking_**invalidation_notifier.cc
>   M     sync/notifier/non_blocking_**invalidation_notifier_**unittest.cc
>   M     sync/notifier/p2p_notifier.h
>   M     sync/notifier/p2p_notifier.cc
>   M     sync/notifier/p2p_notifier_**unittest.cc
>   M     sync/notifier/sync_notifier.h
>   M     sync/notifier/sync_notifier_**factory_unittest.cc
>   A  +  sync/notifier/sync_notifier_**helper.h
>   A  +  sync/notifier/sync_notifier_**helper.cc
>   A  +  sync/notifier/sync_notifier_**helper_unittest.cc
>   D     sync/notifier/sync_notifier_**registrar.h
>   D     sync/notifier/sync_notifier_**registrar.cc
>   D     sync/notifier/sync_notifier_**registrar_unittest.cc
>   M     sync/sync.gyp
>   M     sync/tools/sync_listen_**notifications.cc
>
>
>

Powered by Google App Engine
This is Rietveld 408576698