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

Unified Diff: ios/web/web_state/crw_pass_kit_downloader.mm

Issue 2396553002: [ARC] Converts part of ios/web/ui to ARC.
Patch Set: co Created 4 years, 2 months 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/web/web_state/context_menu_params.mm ('k') | ios/web/web_state/crw_web_view_proxy_impl.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/crw_pass_kit_downloader.mm
diff --git a/ios/web/web_state/crw_pass_kit_downloader.mm b/ios/web/web_state/crw_pass_kit_downloader.mm
index 15b601241afc39915fdd6ca037d0141c237923bf..32c7b87bd69c6469db25f6ca12659d5b6cd5463c 100644
--- a/ios/web/web_state/crw_pass_kit_downloader.mm
+++ b/ios/web/web_state/crw_pass_kit_downloader.mm
@@ -6,7 +6,6 @@
#include <memory>
-#import "base/ios/weak_nsobject.h"
#include "base/mac/scoped_block.h"
#include "base/macros.h"
#include "base/metrics/histogram.h"
@@ -17,6 +16,10 @@
#include "net/url_request/url_fetcher_delegate.h"
#include "net/url_request/url_request_context_getter.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
using net::URLFetcher;
using net::URLFetcherDelegate;
using net::URLRequestContextGetter;
@@ -75,7 +78,7 @@ class PassKitFetcherDelegate : public URLFetcherDelegate {
}
private:
- base::WeakNSObject<CRWPassKitDownloader> owner_;
+ __weak CRWPassKitDownloader* owner_;
DISALLOW_COPY_AND_ASSIGN(PassKitFetcherDelegate);
};
@@ -124,7 +127,6 @@ class PassKitFetcherDelegate : public URLFetcherDelegate {
- (void)dealloc {
[[CRWNetworkActivityIndicatorManager sharedInstance]
clearNetworkTasksForGroup:[self networkActivityKey]];
- [super dealloc];
}
- (BOOL)isMIMETypePassKitType:(NSString*)MIMEType {
« no previous file with comments | « ios/web/web_state/context_menu_params.mm ('k') | ios/web/web_state/crw_web_view_proxy_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698