| Index: chrome/common/extensions/extension.cc
|
| diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc
|
| index 2ce4d5939ef96f4a02fafc9493c8cc568627c22e..6c59a8bbca050af9500ba3b5367d04b5dab57c7c 100644
|
| --- a/chrome/common/extensions/extension.cc
|
| +++ b/chrome/common/extensions/extension.cc
|
| @@ -2319,6 +2319,14 @@ bool Extension::HasFullPermissions() const {
|
| return plugins().size() > 0;
|
| }
|
|
|
| +bool Extension::ShowConfigureContextMenus() const {
|
| + // Don't show context menu for component extensions. We might want to show
|
| + // options for component extension button but now there is no component
|
| + // extension with options. All other menu items like uninstall have
|
| + // no sense for component extensions.
|
| + return location() != Extension::COMPONENT;
|
| +}
|
| +
|
| bool Extension::IsAPIPermission(const std::string& str) const {
|
| for (size_t i = 0; i < Extension::kNumPermissions; ++i) {
|
| if (str == Extension::kPermissions[i].name) {
|
|
|