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

Unified Diff: chrome/browser/ui/cocoa/constrained_window/constrained_window_animation_unittest.mm

Issue 19661004: Made MessagePump a non-thread safe class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding a missing header. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698