Index: base/message_loop/message_loop.h |
diff --git a/base/message_loop/message_loop.h b/base/message_loop/message_loop.h |
index 956f5f088c8cb6d84aaed12b763016b6bccca305..b33ff0d47dd60e872a75bd27307c39d33ae31a8e 100644 |
--- a/base/message_loop/message_loop.h |
+++ b/base/message_loop/message_loop.h |
@@ -154,18 +154,16 @@ class BASE_EXPORT MessageLoop : public MessagePump::Delegate { |
static void EnableHistogrammer(bool enable_histogrammer); |
- typedef MessagePump* (MessagePumpFactory)(); |
+ typedef scoped_ptr<MessagePump> (MessagePumpFactory)(); |
// Uses the given base::MessagePumpForUIFactory to override the default |
// MessagePump implementation for 'TYPE_UI'. Returns true if the factory |
// was successfully registered. |
- static bool InitMessagePumpForUIFactory(MessagePumpFactory* factory); |
+ static bool InitMessagePumpForUIFactory(scoped_ptr<MessagePumpFactory> |
+ factory); |
// Creates the default MessagePump based on |type|. Caller owns return |
// value. |
- // TODO(sky): convert this and InitMessagePumpForUIFactory() to return a |
- // scoped_ptr. |
- static MessagePump* CreateMessagePumpForType(Type type); |
- |
+ static scoped_ptr<MessagePump> CreateMessagePumpForType(Type type); |
// A DestructionObserver is notified when the current MessageLoop is being |
// destroyed. These observers are notified prior to MessageLoop::current() |
// being changed to return NULL. This gives interested parties the chance to |