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

Unified Diff: ios/net/cookies/cookie_store_ios.mm

Issue 2489533003: [ObjC ARC] Converts ios/net to 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
« no previous file with comments | « ios/net/cookies/cookie_creation_time_manager.mm ('k') | ios/net/cookies/cookie_store_ios_client.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/net/cookies/cookie_store_ios.mm
diff --git a/ios/net/cookies/cookie_store_ios.mm b/ios/net/cookies/cookie_store_ios.mm
index fe451374077c3e81ed21e73bff5e4ea4ab4e6c21..edbbb82037aa3f9a193963d71f16645f2669682b 100644
--- a/ios/net/cookies/cookie_store_ios.mm
+++ b/ios/net/cookies/cookie_store_ios.mm
@@ -33,6 +33,10 @@
#include "net/cookies/parsed_cookie.h"
#include "url/gurl.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
namespace net {
namespace {
@@ -293,7 +297,7 @@ CookieStoreIOS::CookieStoreIOS(
net::CookieMonster::PersistentCookieStore* persistent_store,
NSHTTPCookieStorage* system_store)
: cookie_monster_(new net::CookieMonster(persistent_store, nullptr)),
- system_store_([system_store retain]),
+ system_store_(system_store),
creation_time_manager_(new CookieCreationTimeManager),
metrics_enabled_(false),
flush_delay_(base::TimeDelta::FromSeconds(10)),
« no previous file with comments | « ios/net/cookies/cookie_creation_time_manager.mm ('k') | ios/net/cookies/cookie_store_ios_client.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698