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

Unified Diff: ios/chrome/test/app/signin_test_util.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/test/app/settings_test_util.mm ('k') | ios/chrome/test/app/stack_view_test_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/test/app/signin_test_util.mm
diff --git a/ios/chrome/test/app/signin_test_util.mm b/ios/chrome/test/app/signin_test_util.mm
index 813cb3b076e832b881ccca2ab84ab89e8ed4296a..8fc529e49d0e470d715827e414a7f8444fdd35c7 100644
--- a/ios/chrome/test/app/signin_test_util.mm
+++ b/ios/chrome/test/app/signin_test_util.mm
@@ -25,6 +25,10 @@
#include "net/url_request/url_fetcher_delegate.h"
#include "net/url_request/url_request_status.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
namespace {
net::FakeURLFetcherFactory* gFakeURLFetcherFactory = nullptr;
@@ -154,9 +158,8 @@ bool SignOutAndClearAccounts() {
// Clear known identities.
ios::ChromeIdentityService* identity_service =
ios::GetChromeBrowserProvider()->GetChromeIdentityService();
- base::scoped_nsobject<NSArray> identities(
- [identity_service->GetAllIdentities() copy]);
- for (ChromeIdentity* identity in identities.get()) {
+ NSArray* identities([identity_service->GetAllIdentities() copy]);
+ for (ChromeIdentity* identity in identities) {
identity_service->ForgetIdentity(identity, nil);
}
« no previous file with comments | « ios/chrome/test/app/settings_test_util.mm ('k') | ios/chrome/test/app/stack_view_test_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698