| Index: chrome/browser/download/download_crx_util.h
|
| diff --git a/chrome/browser/download/download_crx_util.h b/chrome/browser/download/download_crx_util.h
|
| index cd84fab551dd0afcbd05923ae661321eb3376e41..b80ccd6a82ef40118616381b69dc1411b058a158 100644
|
| --- a/chrome/browser/download/download_crx_util.h
|
| +++ b/chrome/browser/download/download_crx_util.h
|
| @@ -9,6 +9,7 @@
|
|
|
| #include <memory>
|
|
|
| +#include "base/auto_reset.h"
|
| #include "base/memory/ref_counted.h"
|
|
|
| class ExtensionInstallPrompt;
|
| @@ -51,6 +52,11 @@ bool IsExtensionDownload(const content::DownloadItem& download_item);
|
| bool OffStoreInstallAllowedByPrefs(Profile* profile,
|
| const content::DownloadItem& item);
|
|
|
| +// Allows tests to override whether offstore extension installs are allowed
|
| +// for testing purposes.
|
| +std::unique_ptr<base::AutoReset<bool>> OverrideOffstoreInstallAllowedForTesting(
|
| + bool allowed);
|
| +
|
| } // namespace download_crx_util
|
|
|
| #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CRX_UTIL_H_
|
|
|