Index: chrome/browser/notifications/notification_options_menu_model.cc |
diff --git a/chrome/browser/notifications/notification_options_menu_model.cc b/chrome/browser/notifications/notification_options_menu_model.cc |
index 0ccb66b7e5928f70de1bb5fb78eec310fbda804a..790cb25407946a27af2ab395abb6b6c1624a949d 100644 |
--- a/chrome/browser/notifications/notification_options_menu_model.cc |
+++ b/chrome/browser/notifications/notification_options_menu_model.cc |
@@ -119,7 +119,8 @@ NotificationOptionsMenuModel::NotificationOptionsMenuModel(Balloon* balloon) |
if (origin.SchemeIs(chrome::kExtensionScheme)) { |
ExtensionService* ext_service = |
balloon_->profile()->GetExtensionService(); |
- const Extension* extension = ext_service->GetExtensionByURL(origin); |
+ const Extension* extension = |
+ ext_service->extensions()->GetByURL(ExtensionURLInfo(origin)); |
// We get back no extension here when we show the notification after |
// the extension has crashed. |
if (extension) { |
@@ -167,7 +168,8 @@ string16 NotificationOptionsMenuModel::GetLabelForCommandId(int command_id) |
if (origin.SchemeIs(chrome::kExtensionScheme)) { |
ExtensionService* ext_service = |
balloon_->profile()->GetExtensionService(); |
- const Extension* extension = ext_service->GetExtensionByURL(origin); |
+ const Extension* extension = |
+ ext_service->extensions()->GetByURL(ExtensionURLInfo(origin)); |
if (extension) { |
return l10n_util::GetStringUTF16( |
ext_service->IsExtensionEnabled(extension->id()) ? |
@@ -223,7 +225,8 @@ void NotificationOptionsMenuModel::ExecuteCommand(int command_id) { |
service->GrantPermission(origin); |
break; |
case kToggleExtensionCommand: { |
- const Extension* extension = ext_service->GetExtensionByURL(origin); |
+ const Extension* extension = |
+ ext_service->extensions()->GetByURL(ExtensionURLInfo(origin)); |
if (extension) { |
const std::string& id = extension->id(); |
if (ext_service->IsExtensionEnabled(id)) |