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

Unified Diff: chrome/browser/ui/cocoa/applescript/window_applescript.mm

Issue 1894903003: Mac: Fix SDK 10.11 Compile errors after clang roll in r387792 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mock BaseBubbleController Created 4 years, 8 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/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];

Powered by Google App Engine
This is Rietveld 408576698