| Index: ios/chrome/browser/ui/tab_switcher/tab_switcher_controller_egtest.mm
|
| diff --git a/ios/chrome/browser/ui/tab_switcher/tab_switcher_controller_egtest.mm b/ios/chrome/browser/ui/tab_switcher/tab_switcher_controller_egtest.mm
|
| index f1eb8263b2c5fd8bd3931822e5b245824634a654..63a6bd81dbe99db91a8d35a1eb66133c8553f5f2 100644
|
| --- a/ios/chrome/browser/ui/tab_switcher/tab_switcher_controller_egtest.mm
|
| +++ b/ios/chrome/browser/ui/tab_switcher/tab_switcher_controller_egtest.mm
|
| @@ -6,7 +6,6 @@
|
| #import <UIKit/UIKit.h>
|
| #import <XCTest/XCTest.h>
|
|
|
| -#include "base/mac/scoped_nsobject.h"
|
| #include "base/test/scoped_command_line.h"
|
| #import "ios/chrome/app/main_controller_private.h"
|
| #include "ios/chrome/browser/chrome_switches.h"
|
| @@ -21,6 +20,10 @@
|
| #import "ios/chrome/test/earl_grey/chrome_test_case.h"
|
| #include "ui/base/l10n/l10n_util.h"
|
|
|
| +#if !defined(__has_feature) || !__has_feature(objc_arc)
|
| +#error "This file requires ARC support."
|
| +#endif
|
| +
|
| using chrome_test_util::ButtonWithAccessibilityLabel;
|
| using chrome_test_util::ButtonWithAccessibilityLabelId;
|
| using chrome_test_util::StaticTextWithAccessibilityLabelId;
|
| @@ -73,8 +76,8 @@ void OpenNewIncognitoTabUsingUI() {
|
| // Triggers the opening of the tab switcher by launching a command. Should be
|
| // called only when the tab switcher is not presented.
|
| void EnterTabSwitcherWithCommand() {
|
| - base::scoped_nsobject<GenericChromeCommand> command(
|
| - [[GenericChromeCommand alloc] initWithTag:IDC_TOGGLE_TAB_SWITCHER]);
|
| + GenericChromeCommand* command =
|
| + [[GenericChromeCommand alloc] initWithTag:IDC_TOGGLE_TAB_SWITCHER];
|
| chrome_test_util::RunCommandWithActiveViewController(command);
|
| }
|
|
|
|
|