Index: base/test/test_support_ios.mm |
diff --git a/base/test/test_support_ios.mm b/base/test/test_support_ios.mm |
index 338b65a61380294f2c31cb736fc0ba64b33849c5..0d9b0379b9b84ae7871c29d674ce53aa5833861c 100644 |
--- a/base/test/test_support_ios.mm |
+++ b/base/test/test_support_ios.mm |
@@ -151,9 +151,9 @@ static char** g_argv; |
namespace { |
-base::MessagePump* CreateMessagePumpForUIForTests() { |
+scoped_ptr<base::MessagePump> CreateMessagePumpForUIForTests() { |
// A default MessagePump will do quite nicely in tests. |
- return new base::MessagePumpDefault(); |
+ return scoped_ptr<base::MessagePump>(new base::MessagePumpDefault()); |
} |
} // namespace |