| Index: chrome/browser/extensions/extensions_service.cc
|
| diff --git a/chrome/browser/extensions/extensions_service.cc b/chrome/browser/extensions/extensions_service.cc
|
| index 5ea1edef51dd2e20dea7d6ae2511f4b0dd7746b1..362ef2240c5350c61d4756971cda1b7c6ff313f1 100644
|
| --- a/chrome/browser/extensions/extensions_service.cc
|
| +++ b/chrome/browser/extensions/extensions_service.cc
|
| @@ -1257,6 +1257,16 @@ Extension* ExtensionsService::GetExtensionByWebExtent(const GURL& url) {
|
| return NULL;
|
| }
|
|
|
| +bool ExtensionsService::ExtensionBindingsAllowed(const GURL& url) {
|
| + // Allow bindings for all packaged extension.
|
| + if (GetExtensionByURL(url))
|
| + return true;
|
| +
|
| + // Allow bindings for all component, hosted apps.
|
| + Extension* extension = GetExtensionByWebExtent(url);
|
| + return (extension && extension->location() == Extension::COMPONENT);
|
| +}
|
| +
|
| Extension* ExtensionsService::GetExtensionByOverlappingWebExtent(
|
| const ExtensionExtent& extent) {
|
| for (size_t i = 0; i < extensions_.size(); ++i) {
|
|
|