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

Unified Diff: components/signin/ios/browser/fake_profile_oauth2_token_service_ios_provider.mm

Issue 2890983002: [ObjC ARC] Converts components/signin/ios/browser:test_support 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 | « components/signin/ios/browser/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/signin/ios/browser/fake_profile_oauth2_token_service_ios_provider.mm
diff --git a/components/signin/ios/browser/fake_profile_oauth2_token_service_ios_provider.mm b/components/signin/ios/browser/fake_profile_oauth2_token_service_ios_provider.mm
index 50cb0f853b000b87a41b5024f0487fb7d45ec4a4..cffec890989d0cf8490907c4974e2e31df0ea3d8 100644
--- a/components/signin/ios/browser/fake_profile_oauth2_token_service_ios_provider.mm
+++ b/components/signin/ios/browser/fake_profile_oauth2_token_service_ios_provider.mm
@@ -9,6 +9,10 @@
#include "base/logging.h"
#include "base/strings/sys_string_conversions.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
FakeProfileOAuth2TokenServiceIOSProvider::
FakeProfileOAuth2TokenServiceIOSProvider() {
}
@@ -63,9 +67,9 @@
for (auto i = requests_.begin(); i != requests_.end(); ++i) {
std::string account_id = i->first;
AccessTokenCallback callback = i->second;
- NSError* error = [[[NSError alloc] initWithDomain:@"fake_access_token_error"
- code:-1
- userInfo:nil] autorelease];
+ NSError* error = [[NSError alloc] initWithDomain:@"fake_access_token_error"
+ code:-1
+ userInfo:nil];
callback.Run(nil, nil, error);
}
requests_.clear();
« no previous file with comments | « components/signin/ios/browser/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698