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..8c3c8c2d5dad19fde3a7dcd4abcfe7e410f56da2 100644 |
--- a/chrome/browser/notifications/desktop_notification_service.cc |
+++ b/chrome/browser/notifications/desktop_notification_service.cc |
@@ -408,7 +408,8 @@ string16 DesktopNotificationService::DisplayNameForOrigin( |
if (origin.SchemeIs(chrome::kExtensionScheme)) { |
ExtensionService* ext_service = profile_->GetExtensionService(); |
if (ext_service) { |
- const Extension* extension = ext_service->GetExtensionByURL(origin); |
+ const Extension* extension = |
+ ext_service->extensions()->GetByURL(ExtensionURLInfo(origin)); |
if (extension) |
return UTF8ToUTF16(extension->name()); |
} |