Index: ios/chrome/browser/ui/reading_list/reading_list_egtest.mm |
diff --git a/ios/chrome/browser/ui/reading_list/reading_list_egtest.mm b/ios/chrome/browser/ui/reading_list/reading_list_egtest.mm |
index 0ef5d9187498f46314edcd241618456cd9ac18e8..09dcb12934243649a1d594430383915246fa69b5 100644 |
--- a/ios/chrome/browser/ui/reading_list/reading_list_egtest.mm |
+++ b/ios/chrome/browser/ui/reading_list/reading_list_egtest.mm |
@@ -6,7 +6,6 @@ |
#import <UIKit/UIKit.h> |
#import <XCTest/XCTest.h> |
-#include "base/mac/scoped_nsobject.h" |
#include "base/strings/sys_string_conversions.h" |
#include "components/reading_list/ios/reading_list_model.h" |
#include "ios/chrome/browser/reading_list/reading_list_model_factory.h" |
@@ -25,6 +24,10 @@ |
#import "ios/web/public/test/http_server.h" |
#import "ios/web/public/test/http_server_util.h" |
+#if !defined(__has_feature) || !__has_feature(objc_arc) |
+#error "This file requires ARC support." |
+#endif |
+ |
namespace { |
const char kReadTitle[] = "foobar"; |
const char kReadURL[] = "http://readfoobar.com"; |
@@ -133,8 +136,8 @@ void AssertHeaderNotVisible(std::string header) { |
// Opens the reading list menu using command line. |
void OpenReadingList() { |
- base::scoped_nsobject<GenericChromeCommand> command( |
- [[GenericChromeCommand alloc] initWithTag:IDC_SHOW_READING_LIST]); |
+ GenericChromeCommand* command = |
+ [[GenericChromeCommand alloc] initWithTag:IDC_SHOW_READING_LIST]; |
chrome_test_util::RunCommandWithActiveViewController(command); |
} |