Index: chrome/browser/extensions/extension_webstore_private_apitest.cc |
diff --git a/chrome/browser/extensions/extension_webstore_private_apitest.cc b/chrome/browser/extensions/extension_webstore_private_apitest.cc |
index 52fe4883ab5f2a36c2d64b451f615e485fba8416..90b76b2431377a8b65e8ef34d87e375123313d8d 100644 |
--- a/chrome/browser/extensions/extension_webstore_private_apitest.cc |
+++ b/chrome/browser/extensions/extension_webstore_private_apitest.cc |
@@ -4,6 +4,7 @@ |
#include "base/stringprintf.h" |
#include "chrome/browser/extensions/extension_apitest.h" |
+#include "chrome/browser/extensions/extension_install_dialog.h" |
#include "chrome/browser/extensions/extension_install_ui.h" |
#include "chrome/browser/extensions/extension_service.h" |
#include "chrome/browser/extensions/extension_webstore_private_api.h" |
@@ -32,7 +33,7 @@ class ExtensionWebstorePrivateApiTest : public ExtensionApiTest { |
host_resolver()->AddRule("www.example.com", "127.0.0.1"); |
ASSERT_TRUE(test_server()->Start()); |
BeginInstallWithManifestFunction::SetIgnoreUserGestureForTests(true); |
- BeginInstallWithManifestFunction::SetAutoConfirmForTests(true); |
+ SetExtensionInstallDialogForManifestAutoConfirmForTests(true); |
ExtensionInstallUI::DisableFailureUIForTests(); |
} |
@@ -80,7 +81,7 @@ 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) { |
- BeginInstallWithManifestFunction::SetAutoConfirmForTests(false); |
+ SetExtensionInstallDialogForManifestAutoConfirmForTests(false); |
ASSERT_TRUE(RunInstallTest("cancelled.html", "extension.crx")); |
} |