diff options
Diffstat (limited to 'chrome/browser/extensions/extension_install_dialog.h')
-rw-r--r-- | chrome/browser/extensions/extension_install_dialog.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_install_dialog.h b/chrome/browser/extensions/extension_install_dialog.h index e4575c9..4124635 100644 --- a/chrome/browser/extensions/extension_install_dialog.h +++ b/chrome/browser/extensions/extension_install_dialog.h @@ -1,4 +1,4 @@ -// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -54,4 +54,10 @@ bool ShowExtensionInstallDialogForManifest( const ExtensionInstallUI::Prompt& prompt, scoped_refptr<Extension>* dummy_extension); +// For use only in tests - sets a flag that makes invocations of +// ShowExtensionInstallDialog* skip putting up a real dialog, and +// instead act as if the dialog choice was to proceed or abort. +void SetExtensionInstallDialogAutoConfirmForTests( + bool should_proceed); + #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_DIALOG_H_ |