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/itunes_links/itunes_links_observer.mm

Issue 2516643002: [ObjC ARC] Converts ios/chrome/browser/itunes_links:itunes_links to ARC. (Closed)
Patch Set: removed weak nsobject 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/itunes_links/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/itunes_links/itunes_links_observer.mm
diff --git a/ios/chrome/browser/itunes_links/itunes_links_observer.mm b/ios/chrome/browser/itunes_links/itunes_links_observer.mm
index c881fd6930dd9eb350921ed4479a38e23d2564a8..3ba6a3546d6b70bae6bb3566f0cd716ced092cfc 100644
--- a/ios/chrome/browser/itunes_links/itunes_links_observer.mm
+++ b/ios/chrome/browser/itunes_links/itunes_links_observer.mm
@@ -7,13 +7,16 @@
#include <memory>
#include "base/logging.h"
-#import "base/mac/scoped_nsobject.h"
#include "base/strings/sys_string_conversions.h"
#import "ios/chrome/browser/storekit_launcher.h"
#import "ios/web/public/web_state/web_state_observer_bridge.h"
#include "ios/web/public/web_state/web_state.h"
#include "url/gurl.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
@interface ITunesLinksObserver ()
// If |URL| points to a product on itunes.apple.com, returns the product ID.
@@ -25,7 +28,7 @@
@end
@implementation ITunesLinksObserver {
- base::WeakNSProtocol<id<StoreKitLauncher>> _storeKitLauncher;
+ __weak id<StoreKitLauncher> _storeKitLauncher;
std::unique_ptr<web::WebStateObserverBridge> _webStateObserverBridge;
}
@@ -64,7 +67,7 @@
}
- (void)setStoreKitLauncher:(id<StoreKitLauncher>)storeKitLauncher {
- _storeKitLauncher.reset(storeKitLauncher);
+ _storeKitLauncher = storeKitLauncher;
}
@end
« no previous file with comments | « ios/chrome/browser/itunes_links/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698