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

Unified Diff: chrome/browser/ui/cocoa/tabs/tab_projecting_image_view_unittest.mm

Issue 17593006: mac: Update clients of scoped_nsobject.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iwyu, scoped_nsprotocol Created 7 years, 6 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/tabs/tab_projecting_image_view_unittest.mm
diff --git a/chrome/browser/ui/cocoa/tabs/tab_projecting_image_view_unittest.mm b/chrome/browser/ui/cocoa/tabs/tab_projecting_image_view_unittest.mm
index 25bc7dd3f01f1fcdc94d407a85120ddd1f8f5b92..ab10080b47b68b9b2ba21f4db14e70f94badc496 100644
--- a/chrome/browser/ui/cocoa/tabs/tab_projecting_image_view_unittest.mm
+++ b/chrome/browser/ui/cocoa/tabs/tab_projecting_image_view_unittest.mm
@@ -14,31 +14,31 @@ namespace {
class TabProjectingImageViewTest : public CocoaTest {
public:
TabProjectingImageViewTest() {
- scoped_nsobject<NSImage> backgroundImage(
+ base::scoped_nsobject<NSImage> backgroundImage(
[[NSImage alloc] initWithSize:NSMakeSize(16, 16)]);
[backgroundImage lockFocus];
NSRectFill(NSMakeRect(0, 0, 16, 16));
[backgroundImage unlockFocus];
- scoped_nsobject<NSImage> projectorImage(
+ base::scoped_nsobject<NSImage> projectorImage(
[[NSImage alloc] initWithSize:NSMakeSize(16, 16)]);
[projectorImage lockFocus];
NSRectFill(NSMakeRect(0, 0, 16, 16));
[projectorImage unlockFocus];
- scoped_nsobject<NSImage> throbImage(
+ base::scoped_nsobject<NSImage> throbImage(
[[NSImage alloc] initWithSize:NSMakeSize(32, 32)]);
[throbImage lockFocus];
NSRectFill(NSMakeRect(0, 0, 32, 32));
[throbImage unlockFocus];
- scoped_nsobject<TabProjectingImageView> view([[TabProjectingImageView alloc]
- initWithFrame:NSMakeRect(0, 0, 32, 32)
- backgroundImage:backgroundImage
- projectorImage:projectorImage
- throbImage:throbImage
- durationMS:20
- animationContainer:NULL]);
+ base::scoped_nsobject<TabProjectingImageView> view(
+ [[TabProjectingImageView alloc] initWithFrame:NSMakeRect(0, 0, 32, 32)
+ backgroundImage:backgroundImage
+ projectorImage:projectorImage
+ throbImage:throbImage
+ durationMS:20
+ animationContainer:NULL]);
view_ = view.get();
[[test_window() contentView] addSubview:view_];
}

Powered by Google App Engine
This is Rietveld 408576698