diff options
author | asargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-16 22:31:32 +0000 |
---|---|---|
committer | asargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-16 22:31:32 +0000 |
commit | d8c8749b93af8d5b8b2a761313673539234680ef (patch) | |
tree | c545342aa8c464585b6801ba53ec223096b2ff02 /chrome/browser/extensions/extension_management_api_constants.h | |
parent | debb04d07991d559cdd7d24107e3f4f862015d92 (diff) | |
download | chromium_src-d8c8749b93af8d5b8b2a761313673539234680ef.zip chromium_src-d8c8749b93af8d5b8b2a761313673539234680ef.tar.gz chromium_src-d8c8749b93af8d5b8b2a761313673539234680ef.tar.bz2 |
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.
(This is re-landing http://codereview.chromium.org/8423069/ which had a compile
error on the cros_tegra2 bot)
BUG=102579
TEST=See bug
TBR=aa@chromium.org
Review URL: http://codereview.chromium.org/8488012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110376 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_management_api_constants.h')
-rw-r--r-- | chrome/browser/extensions/extension_management_api_constants.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_management_api_constants.h b/chrome/browser/extensions/extension_management_api_constants.h new file mode 100644 index 0000000..81c0077 --- /dev/null +++ b/chrome/browser/extensions/extension_management_api_constants.h @@ -0,0 +1,45 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_API_CONSTANTS_H_ +#define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_API_CONSTANTS_H_ +#pragma once + +namespace extension_management_api_constants { + +// Keys used for incoming arguments and outgoing JSON data. +extern const char kAppLaunchUrlKey[]; +extern const char kDescriptionKey[]; +extern const char kEnabledKey[]; +extern const char kDisabledReasonKey[]; +extern const char kHomepageUrlKey[]; +extern const char kIconsKey[]; +extern const char kIdKey[]; +extern const char kIsAppKey[]; +extern const char kNameKey[]; +extern const char kOfflineEnabledKey[]; +extern const char kOptionsUrlKey[]; +extern const char kPermissionsKey[]; +extern const char kMayDisableKey[]; +extern const char kSizeKey[]; +extern const char kUpdateUrlKey[]; +extern const char kUrlKey[]; +extern const char kVersionKey[]; + +// Values for outgoing JSON data. +extern const char kDisabledReasonPermissionsIncrease[]; +extern const char kDisabledReasonUnknown[]; + +// Error messages. +extern const char kExtensionCreateError[]; +extern const char kGestureNeededForEscalationError[]; +extern const char kManifestParseError[]; +extern const char kNoExtensionError[]; +extern const char kNotAnAppError[]; +extern const char kUserCantDisableError[]; +extern const char kUserDidNotReEnableError[]; + +} // namespace extension_management_api_constants + +#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_API_CONSTANTS_H_ |