Index: chrome/browser/ui/cocoa/constrained_window/constrained_window_animation_unittest.mm |
diff --git a/chrome/browser/ui/cocoa/constrained_window/constrained_window_animation_unittest.mm b/chrome/browser/ui/cocoa/constrained_window/constrained_window_animation_unittest.mm |
index 5ec022f72ca4c3656a067eed37d17484b9909c9f..1fd2d9e1509de25677414faa838057c90ac0604d 100644 |
--- a/chrome/browser/ui/cocoa/constrained_window/constrained_window_animation_unittest.mm |
+++ b/chrome/browser/ui/cocoa/constrained_window/constrained_window_animation_unittest.mm |
@@ -3,6 +3,7 @@ |
// found in the LICENSE file. |
#include "base/mac/scoped_nsobject.h" |
+#include "base/memory/scoped_ptr.h" |
#include "base/message_loop/message_pump_mac.h" |
#import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
#import "chrome/browser/ui/cocoa/constrained_window/constrained_window_animation.h" |
@@ -12,7 +13,7 @@ |
<NSAnimationDelegate> { |
@private |
CGFloat frameCount_; |
- scoped_refptr<base::MessagePumpNSRunLoop> message_pump_; |
+ scoped_ptr<base::MessagePumpNSRunLoop> message_pump_; |
} |
- (void)runAnimation:(NSAnimation*)animation; |
@@ -23,7 +24,7 @@ |
- (id)init { |
if ((self = [super init])) |
- message_pump_ = new base::MessagePumpNSRunLoop; |
+ message_pump_.reset(new base::MessagePumpNSRunLoop); |
return self; |
} |