| Index: chrome/browser/extensions/extension_service.cc
|
| diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
|
| index 8140d2bcd8646baae17926269abb9f9918dec912..c41fc4a0fb0c77ea30310d27776c01deb203f816 100644
|
| --- a/chrome/browser/extensions/extension_service.cc
|
| +++ b/chrome/browser/extensions/extension_service.cc
|
| @@ -512,14 +512,22 @@ bool ExtensionService::IsDownloadFromMiniGallery(const GURL& download_url) {
|
| false); // case_sensitive
|
| }
|
|
|
| -bool ExtensionService::IsInstalledApp(const GURL& url) {
|
| +const Extension* ExtensionService::GetInstalledApp(const GURL& url) {
|
| // Check for hosted app.
|
| - if (GetExtensionByWebExtent(url) != NULL)
|
| - return true;
|
| + const Extension* app = GetExtensionByWebExtent(url);
|
| + if (app != NULL)
|
| + return app;
|
|
|
| // Check for packaged app.
|
| - const Extension* extension = GetExtensionByURL(url);
|
| - return extension != NULL && extension->is_app();
|
| + app = GetExtensionByURL(url);
|
| + if (app != NULL && app->is_app())
|
| + return app;
|
| +
|
| + return NULL;
|
| +}
|
| +
|
| +bool ExtensionService::IsInstalledApp(const GURL& url) {
|
| + return GetInstalledApp(url) != NULL;
|
| }
|
|
|
| // static
|
|
|