Index: mojo/common/message_pump_mojo_unittest.cc |
diff --git a/mojo/common/message_pump_mojo_unittest.cc b/mojo/common/message_pump_mojo_unittest.cc |
index 4276a0d45737cfff9f1337dc3d26f05f10a854e4..fb5ae2470e1a3a8b765008bfcf793bc8d1550651 100644 |
--- a/mojo/common/message_pump_mojo_unittest.cc |
+++ b/mojo/common/message_pump_mojo_unittest.cc |
@@ -11,8 +11,8 @@ namespace mojo { |
namespace common { |
namespace test { |
-base::MessagePump* CreateMojoMessagePump() { |
- return new MessagePumpMojo(); |
+scoped_ptr<base::MessagePump> CreateMojoMessagePump() { |
+ return scoped_ptr<base::MessagePump>(new MessagePumpMojo()); |
} |
RUN_MESSAGE_LOOP_TESTS(Mojo, &CreateMojoMessagePump); |