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

Issue 672863002: Sync: fix crash in DeviceInfoDataTypeController::Subscription destructor. (Closed)

Created:
6 years, 2 months ago by stanisc
Modified:
6 years, 1 month ago
Reviewers:
pavely
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

Sync: fix crash in DeviceInfoDataTypeController::Subscription destructor. There are reports of crashes in DeviceInfoDataTypeController destructor. The crash occurs when DeviceInfoDataTypeController has a pending subscription to LocalDeviceInfoProvider and LocalDeviceInfoProvider gets destroyed first. This doesn't happen normally as the subscription gets cleared once LocalDeviceInfoProvider finishes its initialization. The fix is to clear subscription in StopModel overrides in the two classes that hold DeviceInfoDataTypeController::Subscription. BUG=426205 Committed: https://crrev.com/71fcc6c0d1ca865879da48c85b94e4c35f5a378a Cr-Commit-Position: refs/heads/master@{#301053}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -0 lines) Patch
M chrome/browser/sync/sessions/session_data_type_controller.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/sync_driver/device_info_data_type_controller.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/sync_driver/device_info_data_type_controller.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M components/sync_driver/device_info_data_type_controller_unittest.cc View 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
stanisc
Please review. The fix is fairly small.
6 years, 1 month ago (2014-10-23 16:45:51 UTC) #2
pavely
Did you consider moving local_device_ above directory_data_type_controllers_ in ProfileSyncService? This would guarantee correct destruction order ...
6 years, 1 month ago (2014-10-23 22:56:34 UTC) #3
stanisc
On 2014/10/23 22:56:34, pavely wrote: > Did you consider moving local_device_ above directory_data_type_controllers_ in > ...
6 years, 1 month ago (2014-10-23 23:51:36 UTC) #4
pavely
lgtm
6 years, 1 month ago (2014-10-24 00:07:30 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/672863002/1
6 years, 1 month ago (2014-10-24 04:09:47 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
6 years, 1 month ago (2014-10-24 05:11:41 UTC) #8
commit-bot: I haz the power
6 years, 1 month ago (2014-10-24 05:13:09 UTC) #9
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/71fcc6c0d1ca865879da48c85b94e4c35f5a378a
Cr-Commit-Position: refs/heads/master@{#301053}

Powered by Google App Engine
This is Rietveld 408576698