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

Unified Diff: ios/chrome/browser/net/cookies_egtest.mm

Issue 2884043002: [ObjC ARC] Converts ios/chrome/browser/net:eg_tests to ARC. (Closed)
Patch Set: Created 3 years, 7 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/chrome/browser/net/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/net/cookies_egtest.mm
diff --git a/ios/chrome/browser/net/cookies_egtest.mm b/ios/chrome/browser/net/cookies_egtest.mm
index b464fa9fbfbb7648b1958d3a426e6b1a21e63db5..aed6f274ebe8061a2cf4baff796104e00d2488c9 100644
--- a/ios/chrome/browser/net/cookies_egtest.mm
+++ b/ios/chrome/browser/net/cookies_egtest.mm
@@ -21,6 +21,10 @@
#include "ios/web/public/test/response_providers/response_provider.h"
#include "url/gurl.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
namespace {
const char kTestUrlNormalBrowsing[] = "http://choux/normal/browsing";
@@ -83,7 +87,7 @@ NSString* const kIncognitoCookieValue = @"rainbow";
" var name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie;"
" document.cookie = name + '=;expires=Thu, 01 Jan 1970 00:00:00 GMT';"
"}";
- NSError* error = nil;
+ __unsafe_unretained NSError* error = nil;
chrome_test_util::ExecuteJavaScript(clearCookieScript, &error);
[super tearDown];
}
« no previous file with comments | « ios/chrome/browser/net/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698