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

Unified Diff: ios/chrome/browser/ui/webui/web_ui_egtest.mm

Issue 2677193003: [ObjC ARC] Converts ios/chrome/browser/ui/webui: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/webui/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/webui/web_ui_egtest.mm
diff --git a/ios/chrome/browser/ui/webui/web_ui_egtest.mm b/ios/chrome/browser/ui/webui/web_ui_egtest.mm
index aaa9ed7f136e5bda7d35d6256bd6d3ded9f0e506..614379c5a7d0ccd699a4ea2fec1981bdf9e01c41 100644
--- a/ios/chrome/browser/ui/webui/web_ui_egtest.mm
+++ b/ios/chrome/browser/ui/webui/web_ui_egtest.mm
@@ -23,6 +23,10 @@
#include "ui/base/l10n/l10n_util.h"
#include "url/scheme_host_port.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
using chrome_test_util::BackButton;
using chrome_test_util::ForwardButton;
using chrome_test_util::StaticHtmlViewContainingText;
@@ -61,11 +65,11 @@ id<GREYMatcher> WaitForOmniboxText(std::string text) {
[description appendText:base::SysUTF8ToNSString(text)];
};
- return grey_allOf(chrome_test_util::Omnibox(),
- [[[GREYElementMatcherBlock alloc]
- initWithMatchesBlock:matches
- descriptionBlock:describe] autorelease],
- nil);
+ return grey_allOf(
+ chrome_test_util::Omnibox(),
+ [[GREYElementMatcherBlock alloc] initWithMatchesBlock:matches
+ descriptionBlock:describe],
+ nil);
}
} // namespace
« no previous file with comments | « ios/chrome/browser/ui/webui/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698