| Index: chrome/browser/ui/cocoa/applescript/window_applescript.mm
|
| diff --git a/chrome/browser/ui/cocoa/applescript/window_applescript.mm b/chrome/browser/ui/cocoa/applescript/window_applescript.mm
|
| index 6b2ff8d3feb6fae12edf0d1f8a346b50dc9b59f3..216c0e3db1f86d38586838bacf53cf492060a720 100644
|
| --- a/chrome/browser/ui/cocoa/applescript/window_applescript.mm
|
| +++ b/chrome/browser/ui/cocoa/applescript/window_applescript.mm
|
| @@ -7,6 +7,7 @@
|
| #include <memory>
|
|
|
| #include "base/logging.h"
|
| +#import "base/mac/foundation_util.h"
|
| #import "base/mac/scoped_nsobject.h"
|
| #include "base/time/time.h"
|
| #import "chrome/browser/app_controller_mac.h"
|
| @@ -42,7 +43,8 @@
|
| NSScriptCommand* command = [NSScriptCommand currentCommand];
|
| NSString* mode = [[[command evaluatedArguments]
|
| objectForKey:@"KeyDictionary"] objectForKey:@"mode"];
|
| - AppController* appDelegate = [NSApp delegate];
|
| + AppController* appDelegate =
|
| + base::mac::ObjCCastStrict<AppController>([NSApp delegate]);
|
|
|
| Profile* lastProfile = [appDelegate lastProfile];
|
|
|
|
|