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

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

Issue 9959079: Remove chrome.webstorePrivate.silentlyInstall. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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_webstore_private_api.h
diff --git a/chrome/browser/extensions/extension_webstore_private_api.h b/chrome/browser/extensions/extension_webstore_private_api.h
index 8a9945f8adefc681cecc444605e8ce9c4cac8ebc..5499d73b62decb04dc4c3ee92c46c17fea65ebff 100644
--- a/chrome/browser/extensions/extension_webstore_private_api.h
+++ b/chrome/browser/extensions/extension_webstore_private_api.h
@@ -33,10 +33,6 @@ class WebstorePrivateApi {
// Allows you to override the WebstoreInstaller delegate for testing.
static void SetWebstoreInstallerDelegateForTesting(
WebstoreInstaller::Delegate* delegate);
-
- // If |allow| is true, then the extension IDs used by the SilentlyInstall
- // apitest will be trusted.
- static void SetTrustTestIDsForTesting(bool allow);
};
class InstallBundleFunction : public AsyncExtensionFunction,
@@ -142,37 +138,6 @@ class CompleteInstallFunction : public SyncExtensionFunction {
DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.completeInstall");
};
-class SilentlyInstallFunction : public AsyncExtensionFunction,
- public WebstoreInstallHelper::Delegate,
- public WebstoreInstaller::Delegate {
- public:
- SilentlyInstallFunction();
-
- // WebstoreInstallHelper::Delegate implementation.
- virtual void OnWebstoreParseSuccess(
- const std::string& id,
- const SkBitmap& icon,
- base::DictionaryValue* parsed_manifest) OVERRIDE;
- virtual void OnWebstoreParseFailure(
- const std::string& id,
- InstallHelperResultCode result_code,
- const std::string& error_message) OVERRIDE;
-
- // WebstoreInstaller::Delegate implementation.
- virtual void OnExtensionInstallSuccess(const std::string& id) OVERRIDE;
- virtual void OnExtensionInstallFailure(const std::string& id,
- const std::string& error) OVERRIDE;
-
- protected:
- virtual ~SilentlyInstallFunction();
- virtual bool RunImpl() OVERRIDE;
-
- private:
- std::string id_;
- std::string manifest_;
- DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.silentlyInstall");
-};
-
class GetBrowserLoginFunction : public SyncExtensionFunction {
virtual bool RunImpl() OVERRIDE;
DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.getBrowserLogin");
« no previous file with comments | « chrome/browser/extensions/extension_function_registry.cc ('k') | chrome/browser/extensions/extension_webstore_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698