Commit a3e5f7db authored by stkhapugin's avatar stkhapugin Committed by Commit bot

[ObjC ARC] Converts ios/chrome/browser/itunes_links:itunes_links to ARC.

Automatically generated ARCMigrate commit
Notable issues:None
BUG=624363
TEST=None

Review-Url: https://codereview.chromium.org/2516643002
Cr-Commit-Position: refs/heads/master@{#436305}
parent 84f9f731
......@@ -3,6 +3,7 @@
# found in the LICENSE file.
source_set("itunes_links") {
configs += [ "//build/config/compiler:enable_arc" ]
sources = [
"itunes_links_observer.h",
"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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment