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

Issue 2183253002: Make WinsockInitSingleton explicitly leaky to avoid the AssertSingletonAllowed() dcheck. (Closed)

Created:
4 years, 4 months ago by gogerald1
Modified:
4 years, 4 months ago
Reviewers:
gab, agl
CC:
chromium-reviews, cbentzel+watch_chromium.org, gab
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make WinsockInitSingleton explicitly leaky to avoid the AssertSingletonAllowed() dcheck. BUG=630059 Committed: https://crrev.com/bc52bc570ca268020b38e2dbca4b37f5ff7da917 Cr-Commit-Position: refs/heads/master@{#408117}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -7 lines) Patch
M net/base/winsock_init.cc View 1 chunk +4 lines, -7 lines 2 comments Download

Messages

Total messages: 25 (18 generated)
gogerald1
Hi, PTAL,
4 years, 4 months ago (2016-07-26 22:00:18 UTC) #10
agl
lgtm
4 years, 4 months ago (2016-07-26 23:18:55 UTC) #16
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/2183253002/40001
4 years, 4 months ago (2016-07-27 14:17:09 UTC) #18
commit-bot: I haz the power
Committed patchset #1 (id:40001)
4 years, 4 months ago (2016-07-27 14:20:17 UTC) #20
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/bc52bc570ca268020b38e2dbca4b37f5ff7da917 Cr-Commit-Position: refs/heads/master@{#408117}
4 years, 4 months ago (2016-07-27 14:22:28 UTC) #22
gab
https://codereview.chromium.org/2183253002/diff/40001/net/base/winsock_init.cc File net/base/winsock_init.cc (left): https://codereview.chromium.org/2183253002/diff/40001/net/base/winsock_init.cc#oldcode34 net/base/winsock_init.cc:34: ~WinsockInitSingleton() { On the bug when I said "delete ...
4 years, 4 months ago (2016-07-27 14:29:17 UTC) #23
gab
4 years, 4 months ago (2016-08-09 16:46:32 UTC) #25
Message was sent while issue was closed.
https://codereview.chromium.org/2183253002/diff/40001/net/base/winsock_init.cc
File net/base/winsock_init.cc (left):

https://codereview.chromium.org/2183253002/diff/40001/net/base/winsock_init.c...
net/base/winsock_init.cc:34: ~WinsockInitSingleton() {
On 2016/07/27 14:29:17, gab wrote:
> On the bug when I said "delete the destructor" I meant to do so explicitly
> (C++11 style) so that the compiler verifies the destructor is never invoked,
> i.e. something like:
> 
> // The singleton instance has to be leaked (ref. comment on 
> // |g_winsock_init_singleton| below).
> ~WinsockInitSingleton() = delete;

ping, I think this would be cleaner, can you do this?

Powered by Google App Engine
This is Rietveld 408576698