| Index: chrome/browser/policy/policy_browsertest.cc
|
| diff --git a/chrome/browser/policy/policy_browsertest.cc b/chrome/browser/policy/policy_browsertest.cc
|
| index 72a2b4f44861cf8a8bd2cb69ea5cdf2cfc7eeb8d..53bc2738829fa23cc6ee99eccc91a8d5cb9d07fe 100644
|
| --- a/chrome/browser/policy/policy_browsertest.cc
|
| +++ b/chrome/browser/policy/policy_browsertest.cc
|
| @@ -132,6 +132,7 @@
|
| #include "content/public/test/mock_notification_observer.h"
|
| #include "content/public/test/test_navigation_observer.h"
|
| #include "content/public/test/test_utils.h"
|
| +#include "extensions/browser/extension_dialog_auto_confirm.h"
|
| #include "extensions/browser/extension_host.h"
|
| #include "extensions/browser/extension_prefs.h"
|
| #include "extensions/browser/extension_registry.h"
|
| @@ -1954,8 +1955,8 @@ IN_PROC_BROWSER_TEST_F(PolicyTest, ExtensionAllowedTypes) {
|
| #define MAYBE_ExtensionInstallSources ExtensionInstallSources
|
| #endif
|
| IN_PROC_BROWSER_TEST_F(PolicyTest, MAYBE_ExtensionInstallSources) {
|
| - ExtensionInstallPrompt::g_auto_confirm_for_tests =
|
| - ExtensionInstallPrompt::ACCEPT;
|
| + extensions::ScopedTestDialogAutoConfirm auto_confirm(
|
| + extensions::ScopedTestDialogAutoConfirm::ACCEPT);
|
|
|
| const GURL install_source_url(URLRequestMockHTTPJob::GetMockUrl(
|
| base::FilePath(FILE_PATH_LITERAL("extensions/*"))));
|
|
|