| Index: ios/chrome/browser/ui/qr_scanner/qr_scanner_view_controller_egtest.mm
|
| diff --git a/ios/chrome/browser/ui/qr_scanner/qr_scanner_view_controller_egtest.mm b/ios/chrome/browser/ui/qr_scanner/qr_scanner_view_controller_egtest.mm
|
| index 468065a180ec0dd8430ebd3b218ff1bf0546b0fe..97e40f8867e16f391c4ae866e86ff068b4276da9 100644
|
| --- a/ios/chrome/browser/ui/qr_scanner/qr_scanner_view_controller_egtest.mm
|
| +++ b/ios/chrome/browser/ui/qr_scanner/qr_scanner_view_controller_egtest.mm
|
| @@ -6,7 +6,6 @@
|
| #import <EarlGrey/EarlGrey.h>
|
| #import <UIKit/UIKit.h>
|
|
|
| -#import "base/mac/scoped_nsobject.h"
|
| #include "base/strings/sys_string_conversions.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| #include "components/strings/grit/components_strings.h"
|
| @@ -34,6 +33,10 @@
|
| #import "ui/base/l10n/l10n_util.h"
|
| #import "ui/base/l10n/l10n_util_mac.h"
|
|
|
| +#if !defined(__has_feature) || !__has_feature(objc_arc)
|
| +#error "This file requires ARC support."
|
| +#endif
|
| +
|
| using namespace chrome_test_util;
|
| using namespace qr_scanner;
|
|
|
| @@ -110,8 +113,8 @@ id<GREYMatcher> DialogCancelButton() {
|
| // Opens the QR Scanner view using a command.
|
| // TODO(crbug.com/629776): Replace the command call with a UI action.
|
| void ShowQRScannerWithCommand() {
|
| - base::scoped_nsobject<GenericChromeCommand> command(
|
| - [[GenericChromeCommand alloc] initWithTag:IDC_SHOW_QR_SCANNER]);
|
| + GenericChromeCommand* command =
|
| + [[GenericChromeCommand alloc] initWithTag:IDC_SHOW_QR_SCANNER];
|
| chrome_test_util::RunCommandWithActiveViewController(command);
|
| }
|
|
|
|
|