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

Unified Diff: ios/chrome/browser/ui/fullscreen_egtest.mm

Issue 2685703004: [ObjC ARC] Converts ios/chrome/browser/ui:eg_tests to ARC. (Closed)
Patch Set: Created 3 years, 10 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/browser/ui/error_page_egtest.mm ('k') | ios/chrome/browser/ui/keyboard_commands_egtest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}));
« no previous file with comments | « ios/chrome/browser/ui/error_page_egtest.mm ('k') | ios/chrome/browser/ui/keyboard_commands_egtest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698