Index: ios/chrome/browser/voice/text_to_speech_listener.mm |
diff --git a/ios/chrome/browser/voice/text_to_speech_listener.mm b/ios/chrome/browser/voice/text_to_speech_listener.mm |
index f9a8468dec0486c4bb5f40853d5621110704505c..e7378328133541a582dd08e000a355fc987d46cd 100644 |
--- a/ios/chrome/browser/voice/text_to_speech_listener.mm |
+++ b/ios/chrome/browser/voice/text_to_speech_listener.mm |
@@ -16,6 +16,10 @@ |
#import "ios/chrome/browser/voice/voice_search_url_rewriter.h" |
#include "url/gurl.h" |
+#if !defined(__has_feature) || !__has_feature(objc_arc) |
+#error "This file requires ARC support." |
+#endif |
+ |
#pragma mark - TextToSpeechListener Private Interface |
class TextToSpeechWebStateObserver; |
@@ -23,7 +27,7 @@ class TextToSpeechWebStateObserver; |
@interface TextToSpeechListener () |
// The TextToSpeechListenerDelegate passed on initialization. |
-@property(nonatomic, readonly) id<TextToSpeechListenerDelegate> delegate; |
+@property(weak, nonatomic, readonly) id<TextToSpeechListenerDelegate> delegate; |
@end |