Index: ios/chrome/browser/geolocation/omnibox_geolocation_authorization_alert.mm |
diff --git a/ios/chrome/browser/geolocation/omnibox_geolocation_authorization_alert.mm b/ios/chrome/browser/geolocation/omnibox_geolocation_authorization_alert.mm |
index 0ce6d64ffc43e6a03c60bca773ba8a0f70314678..cfc9e4c0b8c6d6d41fd47781c898c5dc6ad3f696 100644 |
--- a/ios/chrome/browser/geolocation/omnibox_geolocation_authorization_alert.mm |
+++ b/ios/chrome/browser/geolocation/omnibox_geolocation_authorization_alert.mm |
@@ -14,6 +14,10 @@ |
#include "ios/public/provider/chrome/browser/chrome_browser_provider.h" |
#include "ui/base/l10n/l10n_util_mac.h" |
+#if !defined(__has_feature) || !__has_feature(objc_arc) |
+#error "This file requires ARC support." |
+#endif |
+ |
@interface OmniboxGeolocationAuthorizationAlert () { |
base::WeakNSProtocol<id<OmniboxGeolocationAuthorizationAlertDelegate>> |
delegate_; |
@@ -62,7 +66,7 @@ |
style:UIAlertActionStyleDefault |
handler:^(UIAlertAction* action) { |
base::scoped_nsobject<OmniboxGeolocationAuthorizationAlert> |
- strongSelf([weakSelf retain]); |
+ strongSelf(weakSelf); |
if (strongSelf) { |
[[strongSelf delegate] |
authorizationAlertDidAuthorize:strongSelf]; |
@@ -75,7 +79,7 @@ |
style:UIAlertActionStyleCancel |
handler:^(UIAlertAction* action) { |
base::scoped_nsobject<OmniboxGeolocationAuthorizationAlert> |
- strongSelf([weakSelf retain]); |
+ strongSelf(weakSelf); |
if (strongSelf) { |
[[strongSelf delegate] |
authorizationAlertDidCancel:strongSelf]; |