| Index: chrome/browser/policy/policy_browsertest.cc
|
| diff --git a/chrome/browser/policy/policy_browsertest.cc b/chrome/browser/policy/policy_browsertest.cc
|
| index 32c83e5e16f0674989c80adeb4b678586387d21a..31e3c7952ed7334607f3a99e5fd5bc4c71365b58 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"
|
| @@ -1968,8 +1969,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/*"))));
|
|
|