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

Issue 61643006: Adds the ability for MessageLoop to take a MessagePump (Closed)

Created:
7 years, 1 month ago by sky
Modified:
7 years, 1 month ago
CC:
chromium-reviews, erikwright+watch_chromium.org, sadrul
Visibility:
Public.

Description

Adds the ability for MessageLoop to take a MessagePump Using default args is against style guide, but there are a ton of places (mostly tests) that define a MessageLoop as a member. I'll see about a cleanup pass that removes the default args. BUG=none TEST=NONE R=darin@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233800

Patch Set 1 #

Total comments: 2

Patch Set 2 : TYPE_CUSTOM and some scoped_ptr #

Total comments: 1

Patch Set 3 : DCHECK #

Patch Set 4 : factory for creation #

Patch Set 5 : merge to trunk #

Patch Set 6 : fix include order #

Total comments: 1

Patch Set 7 : comments #

Patch Set 8 : move constructor/destructor to .cc #

Patch Set 9 : merge 2 trunk and BASE_EXPORT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -15 lines) Patch
M base/message_loop/message_loop.h View 1 4 chunks +11 lines, -1 line 0 comments Download
M base/message_loop/message_loop.cc View 1 2 3 chunks +26 lines, -8 lines 0 comments Download
M base/threading/thread.h View 1 2 3 4 5 6 7 8 2 chunks +17 lines, -4 lines 0 comments Download
M base/threading/thread.cc View 1 2 3 4 5 6 7 2 chunks +22 lines, -2 lines 0 comments Download
M chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
sky
7 years, 1 month ago (2013-11-07 00:05:49 UTC) #1
darin (slow to review)
https://codereview.chromium.org/61643006/diff/1/base/message_loop/message_loop.h File base/message_loop/message_loop.h (right): https://codereview.chromium.org/61643006/diff/1/base/message_loop/message_loop.h#newcode149 base/message_loop/message_loop.h:149: MessageLoop(Type type = TYPE_DEFAULT, MessagePump* message_pump = NULL); Can ...
7 years, 1 month ago (2013-11-07 00:17:54 UTC) #2
sky
Updated to add TYPE_CUSTOM. I can't use a scoped_ptr in Thread::Options because of how we ...
7 years, 1 month ago (2013-11-07 01:06:38 UTC) #3
darin (slow to review)
How about storing a Callback<MessagePump*()> instead, so we can defer construction of the pump to ...
7 years, 1 month ago (2013-11-07 02:27:21 UTC) #4
sky
Updated to take callback for creating MessagePump.
7 years, 1 month ago (2013-11-07 16:35:29 UTC) #5
darin (slow to review)
LGTM https://codereview.chromium.org/61643006/diff/110006/base/threading/thread.h File base/threading/thread.h (right): https://codereview.chromium.org/61643006/diff/110006/base/threading/thread.h#newcode51 base/threading/thread.h:51: MessagePumpFactory message_pump_factory; You might mention that message_pump_factory overrides ...
7 years, 1 month ago (2013-11-07 21:03:37 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/61643006/250001
7 years, 1 month ago (2013-11-07 21:08:03 UTC) #7
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 1 month ago (2013-11-07 21:34:49 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/61643006/510001
7 years, 1 month ago (2013-11-07 21:35:10 UTC) #9
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 1 month ago (2013-11-07 22:16:08 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/61643006/690003
7 years, 1 month ago (2013-11-07 22:30:51 UTC) #11
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 1 month ago (2013-11-07 22:54:44 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/61643006/690003
7 years, 1 month ago (2013-11-07 23:57:51 UTC) #13
commit-bot: I haz the power
7 years, 1 month ago (2013-11-08 06:16:57 UTC) #14
Message was sent while issue was closed.
Change committed as 233800

Powered by Google App Engine
This is Rietveld 408576698