| Index: chrome/browser/extensions/webstore_installer_test.cc
|
| diff --git a/chrome/browser/extensions/webstore_installer_test.cc b/chrome/browser/extensions/webstore_installer_test.cc
|
| index cf8b82e5a2dcab842f54e3c08d5e9d68ab48dbde..63fc4e0ebc8438286c0c5c5fde8d61da9da0c0a5 100644
|
| --- a/chrome/browser/extensions/webstore_installer_test.cc
|
| +++ b/chrome/browser/extensions/webstore_installer_test.cc
|
| @@ -137,11 +137,11 @@ void WebstoreInstallerTest::RunTestAsync(
|
| void WebstoreInstallerTest::AutoAcceptInstall() {
|
| // TODO(tmdiep): Refactor and remove the use of the command line flag.
|
| // See crbug.com/357774.
|
| - base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
|
| - switches::kAppsGalleryInstallAutoConfirmForTests, "accept");
|
| + ExtensionInstallPrompt::g_auto_confirm_for_tests =
|
| + ExtensionInstallPrompt::ACCEPT;
|
| }
|
|
|
| void WebstoreInstallerTest::AutoCancelInstall() {
|
| - base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
|
| - switches::kAppsGalleryInstallAutoConfirmForTests, "cancel");
|
| + ExtensionInstallPrompt::g_auto_confirm_for_tests =
|
| + ExtensionInstallPrompt::CANCEL;
|
| }
|
|
|