| Index: chrome/browser/extensions/extension_install_dialog.h
|
| diff --git a/chrome/browser/extensions/extension_install_dialog.h b/chrome/browser/extensions/extension_install_dialog.h
|
| index 2c0dcc13a3ce5026981884061b49b72ea1c4d3f4..4cc67fc5270ab2c4f1226fe518088e978ab70ace 100644
|
| --- a/chrome/browser/extensions/extension_install_dialog.h
|
| +++ b/chrome/browser/extensions/extension_install_dialog.h
|
| @@ -8,6 +8,7 @@
|
|
|
| #include <vector>
|
|
|
| +#include "base/memory/ref_counted.h"
|
| #include "base/string16.h"
|
| #include "chrome/browser/extensions/extension_install_ui.h"
|
|
|
| @@ -15,6 +16,10 @@ class Extension;
|
| class Profile;
|
| class SkBitmap;
|
|
|
| +namespace base {
|
| +class DictionaryValue;
|
| +}
|
| +
|
| // The implementations of this function are platform-specific.
|
| void ShowExtensionInstallDialog(Profile* profile,
|
| ExtensionInstallUI::Delegate* delegate,
|
| @@ -23,4 +28,25 @@ void ShowExtensionInstallDialog(Profile* profile,
|
| const std::vector<string16>& permissions,
|
| ExtensionInstallUI::PromptType type);
|
|
|
| +// Wrapper around ShowExtensionInstallDialog that shows the install dialog for
|
| +// a given manifest (that corresponds to an extension about to be installed with
|
| +// ID |id|). If the name in the manifest is a localized placeholder, it may be
|
| +// overidden with |localized_name| (which may be empty). The Extension instance
|
| +// that's parsed is returned via |dummy_extension|.
|
| +void ShowExtensionInstallDialogForManifest(
|
| + Profile *profile,
|
| + ExtensionInstallUI::Delegate* delegate,
|
| + const base::DictionaryValue* manifest,
|
| + const std::string& id,
|
| + const std::string& localized_name,
|
| + SkBitmap* icon,
|
| + ExtensionInstallUI::PromptType type,
|
| + scoped_refptr<Extension>* dummy_extension);
|
| +
|
| +// For use only in tests - sets a flag that makes invocations of
|
| +// ShowExtensionInstallDialogForManifest skip putting up a real dialog, and
|
| +// instead act as if the dialog choice was to proceed or abort.
|
| +void SetExtensionInstallDialogForManifestAutoConfirmForTests(
|
| + bool should_proceed);
|
| +
|
| #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_DIALOG_H_
|
|
|