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

Unified Diff: ios/chrome/browser/ui/sync/sync_fake_server_egtest.mm

Issue 2888173002: [ObjC ARC] Converts ios/chrome/test/app:test_support to ARC. (Closed)
Patch Set: tighten deps exclusion Created 3 years, 6 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/ui/sync/BUILD.gn ('k') | ios/chrome/test/app/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/sync/sync_fake_server_egtest.mm
diff --git a/ios/chrome/browser/ui/sync/sync_fake_server_egtest.mm b/ios/chrome/browser/ui/sync/sync_fake_server_egtest.mm
index f45b4cd7f6bcd43b620ca4627ac270f2c3efa272..e1b00bd1e9035d8af793bb51a8030d2d20fd6633 100644
--- a/ios/chrome/browser/ui/sync/sync_fake_server_egtest.mm
+++ b/ios/chrome/browser/ui/sync/sync_fake_server_egtest.mm
@@ -38,6 +38,10 @@
#include "ui/base/l10n/l10n_util.h"
#include "url/gurl.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
namespace {
// Constant for timeout while waiting for asynchronous sync operations.
@@ -455,9 +459,6 @@ void AssertNumberOfEntitiesWithName(int entity_count,
}];
BOOL success = [condition waitWithTimeout:kSyncOperationTimeout];
DCHECK(success || blockSafeError);
- if (blockSafeError) {
- [blockSafeError autorelease];
- }
GREYAssertTrue(success, [blockSafeError localizedDescription]);
}
@@ -580,9 +581,6 @@ void AssertNumberOfEntitiesWithName(int entity_count,
}];
BOOL success = [condition waitWithTimeout:kSyncOperationTimeout];
DCHECK(success || blockSafeError);
- if (blockSafeError) {
- [blockSafeError autorelease];
- }
GREYAssert(success, [blockSafeError localizedDescription]);
}
« no previous file with comments | « ios/chrome/browser/ui/sync/BUILD.gn ('k') | ios/chrome/test/app/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698