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

Unified Diff: ios/chrome/browser/geolocation/omnibox_geolocation_authorization_alert.mm

Issue 2528003002: [ObjC ARC] Converts ios/chrome/browser/geolocation:geolocation to ARC.Automatically generated ARC… (Closed)
Patch Set: Created 4 years, 1 month 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: 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];

Powered by Google App Engine
This is Rietveld 408576698