Revert 110264 - Fix for management API related to escalated permissions disabled...
commitd9fdd5f55d0d08c2673318f69e9c748e6d8bc90f
authordpolukhin@chromium.org <dpolukhin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 16 Nov 2011 08:03:38 +0000 (16 08:03 +0000)
committerdpolukhin@chromium.org <dpolukhin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 16 Nov 2011 08:03:38 +0000 (16 08:03 +0000)
tree125d29ab9b30b551eca26b257a6f6469c3b8159e
parentbfaf3605dd235bc06fb94c268614023e5a7fe5bd
Revert 110264 - Fix for management API related to escalated permissions disabled extensions

The general approach is to require user gesture and put up the confirmation UI if an extension wants to re-enable a disabled-due-to-permissions-escalation extension.

Also added some new infrastructure for making this easier to test.

BUG=102579
TEST=See bug

Review URL: http://codereview.chromium.org/8423069

TBR=asargent@chromium.org
Review URL: http://codereview.chromium.org/8520035

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110268 0039d316-1c4b-4281-b951-d872f2087c98
20 files changed:
chrome/browser/extensions/extension_function.cc
chrome/browser/extensions/extension_function.h
chrome/browser/extensions/extension_function_test_utils.cc
chrome/browser/extensions/extension_function_test_utils.h
chrome/browser/extensions/extension_install_dialog.cc
chrome/browser/extensions/extension_install_dialog.h
chrome/browser/extensions/extension_management_api.cc
chrome/browser/extensions/extension_management_api.h
chrome/browser/extensions/extension_management_api_browsertest.cc
chrome/browser/extensions/extension_management_api_constants.cc [deleted file]
chrome/browser/extensions/extension_management_api_constants.h [deleted file]
chrome/browser/extensions/extension_webstore_private_apitest.cc
chrome/browser/extensions/webstore_inline_install_browsertest.cc
chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller.mm
chrome/browser/ui/gtk/extensions/extension_install_dialog_gtk.cc
chrome/browser/ui/views/extensions/extension_install_dialog_view.cc
chrome/chrome_browser.gypi
chrome/common/extensions/api/extension_api.json
chrome/common/extensions/docs/management.html
chrome/test/data/extensions/api_test/management/test/basics.js