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

Issue 795003003: Make ProfileSyncService's WeakPtrFactory the last member (Closed)

Created:
6 years ago by dmichael (off chromium)
Modified:
6 years ago
Reviewers:
stanisc
CC:
chromium-reviews, tim+watch_chromium.org, pvalenzuela+watch_chromium.org, maxbogue+watch_chromium.org, zea+watch_chromium.org, maniscalco+watch_chromium.org, anujsharma
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make ProfileSyncService's WeakPtrFactory the last member This will ensure that WeakPtrs are invalidated before any other members' destructors are invoked. This is also one of the last classes needing to change to allow us to turn on a Clang check for WeakPtrFactory member order. Please see the bug for more details. BUG=303818 Committed: https://crrev.com/bd319a43669b5dff4ac77246df7a154026e12bdd Cr-Commit-Position: refs/heads/master@{#308015}

Patch Set 1 #

Patch Set 2 : use scoped_ptr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -58 lines) Patch
M chrome/browser/sync/profile_sync_service.h View 1 3 chunks +13 lines, -12 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 19 chunks +46 lines, -46 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
dmichael (off chromium)
Please let me know if you would rather this be structured differently. For example, we ...
6 years ago (2014-12-11 19:08:27 UTC) #2
dmichael (off chromium)
CC anujk.sharma
6 years ago (2014-12-11 19:28:02 UTC) #3
dmichael (off chromium)
Hold off, I forgot something obvious. I'll switchover to an Init method.
6 years ago (2014-12-11 21:08:59 UTC) #4
chromium-reviews
How about changing PSS's startup_controller_ and backup_rollback_controller_ members to scoped_ptrs to delay construction until after ...
6 years ago (2014-12-11 21:27:28 UTC) #5
dmichael (off chromium)
Good suggestion :) New patch up. On Thu, Dec 11, 2014 at 2:27 PM, 'Nick ...
6 years ago (2014-12-11 21:30:19 UTC) #6
stanisc
I was trying to suggest the same approach with scoped_ptrs but the review tool keeps ...
6 years ago (2014-12-11 21:44:41 UTC) #7
stanisc
lgtm
6 years ago (2014-12-11 22:40:12 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/795003003/20001
6 years ago (2014-12-11 23:11:06 UTC) #10
stanisc
lgtm To unsubscribe from this group and stop receiving emails from it, send an email ...
6 years ago (2014-12-11 23:35:13 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years ago (2014-12-12 01:05:47 UTC) #12
commit-bot: I haz the power
6 years ago (2014-12-12 01:06:41 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/bd319a43669b5dff4ac77246df7a154026e12bdd
Cr-Commit-Position: refs/heads/master@{#308015}

Powered by Google App Engine
This is Rietveld 408576698