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

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

Issue 8520035: Revert 110264 - Fix for management API related to escalated permissions disabled extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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_management_api.h
===================================================================
--- chrome/browser/extensions/extension_management_api.h (revision 110267)
+++ chrome/browser/extensions/extension_management_api.h (working copy)
@@ -8,7 +8,6 @@
#include "base/compiler_specific.h"
#include "chrome/browser/extensions/extension_function.h"
-#include "chrome/browser/extensions/extension_install_ui.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
@@ -19,11 +18,6 @@
ExtensionService* service();
};
-class AsyncExtensionManagementFunction : public AsyncExtensionFunction {
- protected:
- ExtensionService* service();
-};
-
class GetAllExtensionsFunction : public ExtensionManagementFunction {
virtual ~GetAllExtensionsFunction() {}
virtual bool RunImpl() OVERRIDE;
@@ -60,24 +54,9 @@
DECLARE_EXTENSION_FUNCTION_NAME("management.launchApp");
};
-class SetEnabledFunction : public AsyncExtensionManagementFunction,
- public ExtensionInstallUI::Delegate {
- public:
- SetEnabledFunction();
- virtual ~SetEnabledFunction();
+class SetEnabledFunction : public ExtensionManagementFunction {
+ virtual ~SetEnabledFunction() {}
virtual bool RunImpl() OVERRIDE;
-
- protected:
- // ExtensionInstalUI::Delegate.
- virtual void InstallUIProceed() OVERRIDE;
- virtual void InstallUIAbort(bool user_initiated) OVERRIDE;
-
- private:
- std::string extension_id_;
-
- // Used for prompting to re-enable items with permissions escalation updates.
- scoped_ptr<ExtensionInstallUI> install_ui_;
-
DECLARE_EXTENSION_FUNCTION_NAME("management.setEnabled");
};
« no previous file with comments | « chrome/browser/extensions/extension_install_dialog.cc ('k') | chrome/browser/extensions/extension_management_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698