Index: chrome/browser/notifications/desktop_notification_service.cc |
diff --git a/chrome/browser/notifications/desktop_notification_service.cc b/chrome/browser/notifications/desktop_notification_service.cc |
index 8a05b621d62f9d932f4e9c307984af28fd9561df..9bc74ac3a239bedd4f3380c90f354bc01b887ee1 100644 |
--- a/chrome/browser/notifications/desktop_notification_service.cc |
+++ b/chrome/browser/notifications/desktop_notification_service.cc |
@@ -406,9 +406,10 @@ string16 DesktopNotificationService::DisplayNameForOrigin( |
const GURL& origin) { |
// If the source is an extension, lookup the display name. |
if (origin.SchemeIs(chrome::kExtensionScheme)) { |
- ExtensionService* ext_service = profile_->GetExtensionService(); |
- if (ext_service) { |
- const Extension* extension = ext_service->GetExtensionByURL(origin); |
+ ExtensionService* extension_service = profile_->GetExtensionService(); |
+ if (extension_service) { |
+ const Extension* extension = |
+ extension_service->extensions()->GetByURL(ExtensionURLInfo(origin)); |
if (extension) |
return UTF8ToUTF16(extension->name()); |
} |