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

Issue 671603005: Delete GenericChangeProcessor synchronously when possible. (Closed)

Created:
6 years, 2 months ago by maniscalco
Modified:
6 years, 2 months ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, tim+watch_chromium.org, pvalenzuela+watch_chromium.org, zea+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Delete GenericChangeProcessor synchronously when possible. ShareChangeProcessor is responsible for deleting GenericChangeProcessor. Because ShareChangeProcessor's dtor may be invoked by either the UI thread or the model type thread, it must take care to ensure GenericChangeProcessor is destroyed on the model type thread. For some model types, the model type thread *is* the UI thread. In this case it's preferable to destroy the GenericChangeProcessor directly in ShareChangeProcessor's dtor. Why does it matter? It matters because we want to ensure a model type's GenericChangeProcessor and its resources have been destroyed before the model type completes its KeyedService::Shutdown method. BUG=425781 Committed: https://crrev.com/043302b06fcd0d0d18132db3b67df6105b54cf8e Cr-Commit-Position: refs/heads/master@{#300720}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -8 lines) Patch
M components/sync_driver/shared_change_processor.cc View 1 chunk +7 lines, -8 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
maniscalco
Nicolas, would you please review this change?
6 years, 2 months ago (2014-10-22 16:20:23 UTC) #2
Nicolas Zea
lgtm
6 years, 2 months ago (2014-10-22 17:08:18 UTC) #3
maniscalco
On 2014/10/22 17:08:18, Nicolas Zea wrote: > lgtm Thanks for the speedy review!
6 years, 2 months ago (2014-10-22 17:08:52 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/671603005/1
6 years, 2 months ago (2014-10-22 17:11:07 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
6 years, 2 months ago (2014-10-22 18:42:53 UTC) #7
commit-bot: I haz the power
6 years, 2 months ago (2014-10-22 18:44:47 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/043302b06fcd0d0d18132db3b67df6105b54cf8e
Cr-Commit-Position: refs/heads/master@{#300720}

Powered by Google App Engine
This is Rietveld 408576698