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

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

Issue 557953005: Allow the user to "repair" a corrupted extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest Master Created 6 years, 3 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/webstore_standalone_installer.h
diff --git a/chrome/browser/extensions/webstore_standalone_installer.h b/chrome/browser/extensions/webstore_standalone_installer.h
index 07d2af0bae3b2d3998a1ec365d66175fe016f85a..e36f2a22c0061e910ac07698a8be91f0b4bb2349 100644
--- a/chrome/browser/extensions/webstore_standalone_installer.h
+++ b/chrome/browser/extensions/webstore_standalone_installer.h
@@ -64,6 +64,11 @@ class WebstoreStandaloneInstaller
protected:
virtual ~WebstoreStandaloneInstaller();
+ // Runs the callback; primarily used for running a callback before it is
+ // cleared in AbortInstall().
+ void RunCallback(
+ bool success, const std::string& error, webstore_install::Result result);
+
// Called when the install should be aborted. The callback is cleared.
void AbortInstall();
@@ -146,6 +151,10 @@ class WebstoreStandaloneInstaller
// Create an approval to pass installation parameters to the CrxInstaller.
virtual scoped_ptr<WebstoreInstaller::Approval> CreateApproval() const;
+ // ExtensionInstallPrompt::Delegate interface implementation.
+ virtual void InstallUIProceed() OVERRIDE;
+ virtual void InstallUIAbort(bool user_initiated) OVERRIDE;
+
// Accessors to be used by subclasses.
bool show_user_count() const { return show_user_count_; }
const std::string& localized_user_count() const {
@@ -202,10 +211,6 @@ class WebstoreStandaloneInstaller
InstallHelperResultCode result_code,
const std::string& error_message) OVERRIDE;
- // ExtensionInstallPrompt::Delegate interface implementation.
- virtual void InstallUIProceed() OVERRIDE;
- virtual void InstallUIAbort(bool user_initiated) OVERRIDE;
-
// WebstoreInstaller::Delegate interface implementation.
virtual void OnExtensionInstallSuccess(const std::string& id) OVERRIDE;
virtual void OnExtensionInstallFailure(

Powered by Google App Engine
This is Rietveld 408576698