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

Unified Diff: ios/chrome/browser/web/visible_url_egtest.mm

Issue 2890003002: [ObjC ARC] Converts ios/chrome/browser/web:eg_tests to ARC. (Closed)
Patch Set: Created 3 years, 7 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/web/stop_loading_egtest.mm ('k') | ios/chrome/browser/web/window_open_by_dom_egtest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/web/visible_url_egtest.mm
diff --git a/ios/chrome/browser/web/visible_url_egtest.mm b/ios/chrome/browser/web/visible_url_egtest.mm
index 290aa57ad9d9b42b4670771bc81bdcb1bae8b42a..7d16941a7ec433ebecf8aa0e420f98dc65c32f55 100644
--- a/ios/chrome/browser/web/visible_url_egtest.mm
+++ b/ios/chrome/browser/web/visible_url_egtest.mm
@@ -24,6 +24,10 @@
#include "ios/web/public/test/url_test_util.h"
#include "url/gurl.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
using chrome_test_util::WebViewContainingText;
using chrome_test_util::OmniboxText;
@@ -520,8 +524,8 @@ class PausableResponseProvider : public HtmlResponseProvider {
// Quickly (using chrome command) navigate forward twice and wait for
// kChromeUIVersionURL to load.
- base::scoped_nsobject<GenericChromeCommand> forwardCommand(
- [[GenericChromeCommand alloc] initWithTag:IDC_FORWARD]);
+ GenericChromeCommand* forwardCommand =
+ [[GenericChromeCommand alloc] initWithTag:IDC_FORWARD];
chrome_test_util::RunCommandWithActiveViewController(forwardCommand);
chrome_test_util::RunCommandWithActiveViewController(forwardCommand);
« no previous file with comments | « ios/chrome/browser/web/stop_loading_egtest.mm ('k') | ios/chrome/browser/web/window_open_by_dom_egtest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698