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() { |