Index: ios/chrome/browser/ui/fullscreen_egtest.mm |
diff --git a/ios/chrome/browser/ui/fullscreen_egtest.mm b/ios/chrome/browser/ui/fullscreen_egtest.mm |
index 4686bf199aac65235009b073bb441aab3ee073ce..a1ecf399a2e61a28ccbd850f1c6d80cf0dc17631 100644 |
--- a/ios/chrome/browser/ui/fullscreen_egtest.mm |
+++ b/ios/chrome/browser/ui/fullscreen_egtest.mm |
@@ -28,6 +28,10 @@ |
#import "ios/web/public/test/web_view_interaction_test_util.h" |
#include "url/gurl.h" |
+#if !defined(__has_feature) || !__has_feature(objc_arc) |
+#error "This file requires ARC support." |
+#endif |
+ |
namespace { |
// TODO(crbug.com/638674): Move this to a shared location as it is a duplicate |
@@ -180,7 +184,7 @@ void AssertStringIsPresentOnPage(const std::string& text) { |
__block bool finished = false; |
chrome_test_util::GetCurrentWebState()->ExecuteJavaScript( |
- base::UTF8ToUTF16(script), base::BindBlock(^(const base::Value*) { |
+ base::UTF8ToUTF16(script), base::BindBlockArc(^(const base::Value*) { |
finished = true; |
})); |