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

Issue 9297009: Remove static initializer in dummy_event (Closed)

Created:
8 years, 11 months ago by Tyler Breisacher (Chromium)
Modified:
8 years, 10 months ago
Reviewers:
Nico, jam
CC:
chromium-reviews, darin-cc_chromium.org
Visibility:
Public.

Description

Remove static initializer in dummy_event BUG=94925 TEST=sizes Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=120405

Patch Set 1 #

Total comments: 3

Patch Set 2 : use LazyInstance #

Patch Set 3 : use anonymous namespace #

Patch Set 4 : stupid copy-and-paste error #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -3 lines) Patch
M ipc/ipc_sync_message.cc View 1 2 3 2 chunks +17 lines, -3 lines 1 comment Download

Messages

Total messages: 14 (0 generated)
Tyler Breisacher (Chromium)
Not sure if this is the right way to do this...
8 years, 11 months ago (2012-01-27 05:32:28 UTC) #1
jam
http://codereview.chromium.org/9297009/diff/1/ipc/ipc_sync_message.cc File ipc/ipc_sync_message.cc (right): http://codereview.chromium.org/9297009/diff/1/ipc/ipc_sync_message.cc#newcode51 ipc/ipc_sync_message.cc:51: static base::WaitableEvent* dummy_event = new base::WaitableEvent(true, true); I don't ...
8 years, 11 months ago (2012-01-27 18:19:04 UTC) #2
Tyler Breisacher (Chromium)
http://codereview.chromium.org/9297009/diff/1/ipc/ipc_sync_message.cc File ipc/ipc_sync_message.cc (right): http://codereview.chromium.org/9297009/diff/1/ipc/ipc_sync_message.cc#newcode51 ipc/ipc_sync_message.cc:51: static base::WaitableEvent* dummy_event = new base::WaitableEvent(true, true); Right, sorry. ...
8 years, 10 months ago (2012-01-30 22:58:03 UTC) #3
jam
http://codereview.chromium.org/9297009/diff/1/ipc/ipc_sync_message.cc File ipc/ipc_sync_message.cc (right): http://codereview.chromium.org/9297009/diff/1/ipc/ipc_sync_message.cc#newcode51 ipc/ipc_sync_message.cc:51: static base::WaitableEvent* dummy_event = new base::WaitableEvent(true, true); On 2012/01/30 ...
8 years, 10 months ago (2012-02-01 17:01:20 UTC) #4
Tyler Breisacher (Chromium)
I haven't worked with LazyInstance before, so I could be missing something, but it looks ...
8 years, 10 months ago (2012-02-01 20:00:40 UTC) #5
jam
On 2012/02/01 20:00:40, Tyler Breisacher wrote: > I haven't worked with LazyInstance before, so I ...
8 years, 10 months ago (2012-02-03 00:32:55 UTC) #6
Tyler Breisacher (Chromium)
Thank you! I think this should work now.
8 years, 10 months ago (2012-02-03 05:03:52 UTC) #7
jam
lgtm
8 years, 10 months ago (2012-02-03 07:54:04 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tbreisacher@chromium.org/9297009/8002
8 years, 10 months ago (2012-02-03 07:59:00 UTC) #9
commit-bot: I haz the power
Try job failure for 9297009-8002 (retry) on linux_rel for step "ui_tests". It's a second try, ...
8 years, 10 months ago (2012-02-03 09:15:05 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tbreisacher@chromium.org/9297009/8004
8 years, 10 months ago (2012-02-03 19:06:56 UTC) #11
commit-bot: I haz the power
Change committed as 120405
8 years, 10 months ago (2012-02-03 21:48:45 UTC) #12
Nico
http://codereview.chromium.org/9297009/diff/8004/ipc/ipc_sync_message.cc File ipc/ipc_sync_message.cc (right): http://codereview.chromium.org/9297009/diff/8004/ipc/ipc_sync_message.cc#newcode28 ipc/ipc_sync_message.cc:28: static base::LazyInstance<base::WaitableEvent, WaitableEventLazyInstanceTraits> Can you make this ::Lazy? As ...
8 years, 10 months ago (2012-02-03 23:02:16 UTC) #13
Tyler Breisacher (Chromium)
8 years, 10 months ago (2012-02-03 23:38:17 UTC) #14
We discussed this over IM but just to put it here for future reference: We can't
really make it leaky because LeakyLazyInstanceTraits is in an internal
namespace. We could just use LazyInstance<WaitableEvent>::Leaky, except that
calls WaitableEvent's no-arg constructor. But WaitableEvent doesn't have a
no-arg constructor so we will leave this as is for now.

Powered by Google App Engine
This is Rietveld 408576698