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

Issue 294023017: sync: Fix crash on backend initialize failure (Closed)

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

Description

sync: Fix crash on backend initialize failure Fixes a crash in ungraceful sync backend shutdown. The problem was that the sync backend host core might try to unregister itself as a listener of some information generated in the ModelTypeRegistry, but the ModelTypeRegistry did not exist if backend initialization failed. The fix used here is to track whether or not we were registered for these notifications in the first place, and only unregister if we had previously registered successfully. In the failure shutdown case, the flag is unset, so we will not attempt to unregister. BUG=376863 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272697

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -1 line) Patch
M chrome/browser/sync/glue/sync_backend_host_core.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_core.cc View 4 chunks +11 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
rlarocque
Please review.
6 years, 7 months ago (2014-05-23 23:18:33 UTC) #1
maniscalco
LGTM. Let's get this landed. We can work on cleaning up sync manager initialization in ...
6 years, 7 months ago (2014-05-23 23:38:35 UTC) #2
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 7 months ago (2014-05-23 23:42:02 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/294023017/1
6 years, 7 months ago (2014-05-23 23:42:31 UTC) #4
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 7 months ago (2014-05-24 00:22:05 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/294023017/1
6 years, 7 months ago (2014-05-24 00:23:55 UTC) #6
commit-bot: I haz the power
6 years, 7 months ago (2014-05-24 03:16:17 UTC) #7
Message was sent while issue was closed.
Change committed as 272697

Powered by Google App Engine
This is Rietveld 408576698