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

Unified Diff: ios/web/net/cookie_notification_bridge.mm

Issue 2247303009: Converts ios/web/net to ARC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ios-web
Patch Set: Removes web_arc_transition temporary target Created 4 years, 4 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
Index: ios/web/net/cookie_notification_bridge.mm
diff --git a/ios/web/net/cookie_notification_bridge.mm b/ios/web/net/cookie_notification_bridge.mm
index a610f005b8d1b2b1539f21b44be64ce66b31e3b1..3088ab432cddadd2ba685d730bcd2498c6e6d4bc 100644
--- a/ios/web/net/cookie_notification_bridge.mm
+++ b/ios/web/net/cookie_notification_bridge.mm
@@ -11,6 +11,10 @@
#include "ios/net/cookies/cookie_store_ios.h"
#include "ios/web/public/web_thread.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
namespace web {
CookieNotificationBridge::CookieNotificationBridge() {
@@ -21,7 +25,7 @@ CookieNotificationBridge::CookieNotificationBridge() {
usingBlock:^(NSNotification* notification) {
OnNotificationReceived(notification);
}];
- observer_.reset([observer retain]);
+ observer_.reset(observer);
}
CookieNotificationBridge::~CookieNotificationBridge() {

Powered by Google App Engine
This is Rietveld 408576698