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

Unified Diff: chrome/browser/extensions/extension_install_prompt.h

Issue 410683008: Remove kAppsGalleryInstallAutoConfirmForTests switch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/extensions/extension_install_prompt.h
diff --git a/chrome/browser/extensions/extension_install_prompt.h b/chrome/browser/extensions/extension_install_prompt.h
index 57ed5423979e470f6d47b3d6eecb0e4cf1f2392e..7d423e7489a73be966b578dcffe39597cc8f4a9f 100644
--- a/chrome/browser/extensions/extension_install_prompt.h
+++ b/chrome/browser/extensions/extension_install_prompt.h
@@ -53,6 +53,15 @@ class InfoBarDelegate;
class ExtensionInstallPrompt
: public base::SupportsWeakPtr<ExtensionInstallPrompt> {
public:
+ // A setting to cause extension/app installs from the webstore skip the normal
+ // confirmation dialog. This should only be used in tests.
+ enum AutoConfirmForTests {
+ NONE, // The prompt will show normally.
+ ACCEPT, // The prompt will always accept.
+ CANCEL, // The prompt will always cancel.
+ };
+ static AutoConfirmForTests g_auto_confirm_for_tests;
+
// This enum is associated with Extensions.InstallPrompt_Type UMA histogram.
// Do not modify existing values and add new values only to the end.
enum PromptType {

Powered by Google App Engine
This is Rietveld 408576698