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

Issue 2718533003: [Sync] Adjust types to configure during shutdown (Closed)

Created:
3 years, 10 months ago by pavely
Modified:
3 years, 9 months ago
Reviewers:
skym
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Adjust types to configure during shutdown When preparing request to server we need to make sure there are update handlers registered for all types to download. It is possible that configuration cycle is scheduled with set of types that are later unregistered from ModelTypeRegistry as part of shutdown. When configuration cycle gets to run it DCHECKs on types that were requested but later unregistered. The solution is to detect shutdown condition and adjust types to download. BUG=683216 R=skym@chromium.org Review-Url: https://codereview.chromium.org/2718533003 Cr-Commit-Position: refs/heads/master@{#452932} Committed: https://chromium.googlesource.com/chromium/src/+/2010aad1ee6e6b1edfff8e726dbfbea20c2a6ce4

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add syncer unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -10 lines) Patch
M chrome/browser/sync/test/integration/sync_errors_test.cc View 1 chunk +2 lines, -8 lines 0 comments Download
M components/sync/engine_impl/syncer.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download
M components/sync/engine_impl/syncer_unittest.cc View 1 2 chunks +18 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
pavely
3 years, 10 months ago (2017-02-24 05:01:59 UTC) #5
skym
lgtm https://codereview.chromium.org/2718533003/diff/1/components/sync/engine_impl/syncer.cc File components/sync/engine_impl/syncer.cc (right): https://codereview.chromium.org/2718533003/diff/1/components/sync/engine_impl/syncer.cc#newcode90 components/sync/engine_impl/syncer.cc:90: if (cancelation_signal_->IsSignalled()) Would be good to have a ...
3 years, 9 months ago (2017-02-24 17:04:25 UTC) #6
pavely
https://codereview.chromium.org/2718533003/diff/1/components/sync/engine_impl/syncer.cc File components/sync/engine_impl/syncer.cc (right): https://codereview.chromium.org/2718533003/diff/1/components/sync/engine_impl/syncer.cc#newcode90 components/sync/engine_impl/syncer.cc:90: if (cancelation_signal_->IsSignalled()) On 2017/02/24 17:04:25, skym wrote: > Would ...
3 years, 9 months ago (2017-02-24 18:54:32 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2718533003/20001
3 years, 9 months ago (2017-02-24 18:54:45 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/317943) linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 9 months ago (2017-02-24 19:11:30 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2718533003/20001
3 years, 9 months ago (2017-02-24 19:21:03 UTC) #14
commit-bot: I haz the power
3 years, 9 months ago (2017-02-24 21:36:36 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/2010aad1ee6e6b1edfff8e726dbf...

Powered by Google App Engine
This is Rietveld 408576698