| Index: chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc
|
| diff --git a/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc b/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc
|
| index 34db2a3f52a433f5274ed153aa03836af599654a..ed403f883829904767f8ac04582291ea9c4622ea 100644
|
| --- a/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc
|
| +++ b/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc
|
| @@ -113,8 +113,6 @@ class ExtensionWebstorePrivateApiTest : public ExtensionApiTest {
|
| command_line->AppendSwitchASCII(
|
| switches::kAppsGalleryURL,
|
| "http://www.example.com/files/extensions/api_test");
|
| - command_line->AppendSwitchASCII(
|
| - switches::kAppsGalleryInstallAutoConfirmForTests, "accept");
|
| }
|
|
|
| virtual void SetUpInProcessBrowserTestFixture() OVERRIDE {
|
| @@ -148,6 +146,9 @@ class ExtensionWebstorePrivateApiTest : public ExtensionApiTest {
|
| virtual void SetUpOnMainThread() OVERRIDE {
|
| ExtensionApiTest::SetUpOnMainThread();
|
|
|
| + ExtensionInstallPrompt::g_auto_confirm_for_tests =
|
| + ExtensionInstallPrompt::ACCEPT;
|
| +
|
| // Grab references to the fake signin manager and token service.
|
| signin_manager_ =
|
| static_cast<FakeSigninManagerForTesting*>(
|
| @@ -299,8 +300,8 @@ IN_PROC_BROWSER_TEST_F(ExtensionWebstorePrivateApiTest, InstallLocalized) {
|
|
|
| // Now test the case where the user cancels the confirmation dialog.
|
| IN_PROC_BROWSER_TEST_F(ExtensionWebstorePrivateApiTest, InstallCancelled) {
|
| - CommandLine::ForCurrentProcess()->AppendSwitchASCII(
|
| - switches::kAppsGalleryInstallAutoConfirmForTests, "cancel");
|
| + ExtensionInstallPrompt::g_auto_confirm_for_tests =
|
| + ExtensionInstallPrompt::CANCEL;
|
| ASSERT_TRUE(RunInstallTest("cancelled.html", "extension.crx"));
|
| }
|
|
|
|
|