| Index: chrome/browser/extensions/webstore_installer.h
|
| ===================================================================
|
| --- chrome/browser/extensions/webstore_installer.h (revision 137574)
|
| +++ chrome/browser/extensions/webstore_installer.h (working copy)
|
| @@ -47,17 +47,11 @@
|
| const std::string& error) = 0;
|
| };
|
|
|
| - // Contains information about what parts of the extension install process can
|
| - // be skipped or modified. If one of these is present, it means that a CRX
|
| - // download was initiated by WebstoreInstaller. The Approval instance should
|
| - // be checked further for additional details.
|
| + // If added to the WebstoreInstaller, an Approval indicates that the user has
|
| + // already approved the installation and that the CrxInstaller can bypass its
|
| + // install prompt.
|
| struct Approval : public content::DownloadItem::ExternalData {
|
| - static scoped_ptr<Approval> CreateWithInstallPrompt(Profile* profile);
|
| - static scoped_ptr<Approval> CreateWithNoInstallPrompt(
|
| - Profile* profile,
|
| - const std::string& extension_id,
|
| - scoped_ptr<base::DictionaryValue> parsed_manifest);
|
| -
|
| + Approval();
|
| virtual ~Approval();
|
|
|
| // The extension id that was approved for installation.
|
| @@ -75,15 +69,6 @@
|
|
|
| // Whether to skip the post install UI like the extension installed bubble.
|
| bool skip_post_install_ui;
|
| -
|
| - // Whether to skip the install dialog once the extension has been downloaded
|
| - // and unpacked. One reason this can be true is that in the normal webstore
|
| - // installation, the dialog is shown earlier, before any download is done,
|
| - // so there's no need to show it again.
|
| - bool skip_install_dialog;
|
| -
|
| - private:
|
| - Approval();
|
| };
|
|
|
| // Gets the Approval associated with the |download|, or NULL if there's none.
|
|
|