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

Issue 2569083003: Prevent prefs_registrar unsubscribe from destroyed pref_service (Closed)

Created:
4 years ago by palar
Modified:
4 years ago
Reviewers:
stevenjb, Dan Beam
CC:
chromium-reviews, dbeam+watch-options_chromium.org, michaelpg+watch-options_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent prefs_registrar unsubscribe from destroyed pref_service In some rare cases pref_change_registrar_ do not unsubscribed during the test body, resulting unsubscribe-on-destruction, but at time of test's class dtor execution pref_service was already destroyed. With this CL prefs_registrar lifespan will not exeed pref_service's. BUG= R=dbeam@chromium.org, stevenjb@chromium.org Committed: https://crrev.com/4f17246f4e8201d61c3c41319274beb6f51c78e6 Cr-Commit-Position: refs/heads/master@{#438481}

Patch Set 1 #

Total comments: 1

Patch Set 2 : nit removal #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -14 lines) Patch
M chrome/browser/ui/webui/options/preferences_browsertest.h View 3 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/options/preferences_browsertest.cc View 1 10 chunks +22 lines, -10 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
palar
4 years ago (2016-12-13 12:20:02 UTC) #1
stevenjb
lgtm https://codereview.chromium.org/2569083003/diff/1/chrome/browser/ui/webui/options/preferences_browsertest.cc File chrome/browser/ui/webui/options/preferences_browsertest.cc (right): https://codereview.chromium.org/2569083003/diff/1/chrome/browser/ui/webui/options/preferences_browsertest.cc#newcode109 chrome/browser/ui/webui/options/preferences_browsertest.cc:109: pref_change_registrar_.reset(nullptr); nit: reset() ?
4 years ago (2016-12-13 18:21:01 UTC) #3
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/2569083003/20001
4 years ago (2016-12-14 10:50:31 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-14 11:32:55 UTC) #9
commit-bot: I haz the power
4 years ago (2016-12-14 11:35:23 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/4f17246f4e8201d61c3c41319274beb6f51c78e6
Cr-Commit-Position: refs/heads/master@{#438481}

Powered by Google App Engine
This is Rietveld 408576698