Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5018)

Unified Diff: chrome/browser/download/download_crx_util.h

Issue 2668863002: [Extensions] Remove FeatureSwitch::easy_off_store_install (Closed)
Patch Set: Add TODO for histograms Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698