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

Unified Diff: ios/chrome/browser/device_sharing/device_sharing_manager.mm

Issue 2560503002: [ObjC ARC] Converts ios/chrome/browser/device_sharing:device_sharing to ARC.Automatically generat… (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « ios/chrome/browser/device_sharing/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/device_sharing/device_sharing_manager.mm
diff --git a/ios/chrome/browser/device_sharing/device_sharing_manager.mm b/ios/chrome/browser/device_sharing/device_sharing_manager.mm
index e84f257a444e87a03c2a2f0c1173e3e5097a6886..1039eb57e85fd6bd1d9850071f69996fbad01705 100644
--- a/ios/chrome/browser/device_sharing/device_sharing_manager.mm
+++ b/ios/chrome/browser/device_sharing/device_sharing_manager.mm
@@ -15,6 +15,10 @@
#include "ios/chrome/browser/prefs/pref_observer_bridge.h"
#include "url/gurl.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
@interface DeviceSharingManager ()<PrefObserverDelegate> {
ios::ChromeBrowserState* _browserState; // weak
@@ -77,11 +81,11 @@
}
if (!_handoffManager)
- _handoffManager.reset([[[self class] createHandoffManager] retain]);
+ _handoffManager.reset([[self class] createHandoffManager]);
}
+ (HandoffManager*)createHandoffManager {
- return [[[HandoffManager alloc] init] autorelease];
+ return [[HandoffManager alloc] init];
}
#pragma mark - PrefObserverDelegate
« no previous file with comments | « ios/chrome/browser/device_sharing/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698