| Index: chrome/browser/ui/cocoa/applescript/window_applescript_test.mm
|
| diff --git a/chrome/browser/ui/cocoa/applescript/window_applescript_test.mm b/chrome/browser/ui/cocoa/applescript/window_applescript_test.mm
|
| index 013ce958013d39331af808c87e51e90476b6c79c..abc9348483c6c31c1c2701917185784b89aaea09 100644
|
| --- a/chrome/browser/ui/cocoa/applescript/window_applescript_test.mm
|
| +++ b/chrome/browser/ui/cocoa/applescript/window_applescript_test.mm
|
| @@ -4,6 +4,7 @@
|
|
|
| #import <Cocoa/Cocoa.h>
|
|
|
| +#import "base/mac/foundation_util.h"
|
| #import "base/mac/scoped_nsobject.h"
|
| #include "base/strings/sys_string_conversions.h"
|
| #import "chrome/browser/app_controller_mac.h"
|
| @@ -40,7 +41,9 @@ IN_PROC_BROWSER_TEST_F(WindowAppleScriptTest, CreationWithNoProfile) {
|
|
|
| // Create a window with a particular profile.
|
| IN_PROC_BROWSER_TEST_F(WindowAppleScriptTest, CreationWithProfile) {
|
| - Profile* lastProfile = [[NSApp delegate] lastProfile];
|
| + AppController* appController =
|
| + base::mac::ObjCCastStrict<AppController>([NSApp delegate]);
|
| + Profile* lastProfile = [appController lastProfile];
|
| base::scoped_nsobject<WindowAppleScript> aWindow(
|
| [[WindowAppleScript alloc] initWithProfile:lastProfile]);
|
| EXPECT_TRUE(aWindow.get());
|
|
|