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

Unified Diff: ios/public/provider/chrome/browser/voice/test_voice_search_provider.mm

Issue 2667753008: [ObjC ARC] Converts ios/public/provider/chrome/browser/voice:test_support to ARC. (Closed)
Patch Set: Created 3 years, 11 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/public/provider/chrome/browser/voice/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/public/provider/chrome/browser/voice/test_voice_search_provider.mm
diff --git a/ios/public/provider/chrome/browser/voice/test_voice_search_provider.mm b/ios/public/provider/chrome/browser/voice/test_voice_search_provider.mm
index 0e890871d89dc2c791b59d76257eace9a704ffd5..03ab77b5662b798062b3afae211b3004f9d9d125 100644
--- a/ios/public/provider/chrome/browser/voice/test_voice_search_provider.mm
+++ b/ios/public/provider/chrome/browser/voice/test_voice_search_provider.mm
@@ -4,18 +4,21 @@
#import "ios/public/provider/chrome/browser/voice/test_voice_search_provider.h"
-#include "base/mac/scoped_nsobject.h"
#import "ios/public/provider/chrome/browser/voice/voice_search_language.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
TestVoiceSearchProvider::TestVoiceSearchProvider() {}
TestVoiceSearchProvider::~TestVoiceSearchProvider() {}
NSArray* TestVoiceSearchProvider::GetAvailableLanguages() const {
- base::scoped_nsobject<VoiceSearchLanguage> en([[VoiceSearchLanguage alloc]
- initWithIdentifier:@"en-US"
- displayName:@"English (US)"
- localizationPreference:nil]);
+ VoiceSearchLanguage* en =
+ [[VoiceSearchLanguage alloc] initWithIdentifier:@"en-US"
+ displayName:@"English (US)"
+ localizationPreference:nil];
return @[ en ];
}
« no previous file with comments | « ios/public/provider/chrome/browser/voice/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698