Index: chrome/browser/notifications/message_center_notification_manager.cc |
diff --git a/chrome/browser/notifications/message_center_notification_manager.cc b/chrome/browser/notifications/message_center_notification_manager.cc |
index 44ffbdb248c8a5e70e3a83e05381051b4ad706d4..50f4ad48724601cdf25d04788e2126e548669552 100644 |
--- a/chrome/browser/notifications/message_center_notification_manager.cc |
+++ b/chrome/browser/notifications/message_center_notification_manager.cc |
@@ -173,8 +173,10 @@ void MessageCenterNotificationManager::DisableExtension( |
FindProfileNotification(notification_id); |
std::string extension_id = profile_notification->GetExtensionId(); |
DCHECK(!extension_id.empty()); // or UI should not have enabled the command. |
- profile_notification->profile()->GetExtensionService()->DisableExtension( |
- extension_id, extensions::Extension::DISABLE_USER_ACTION); |
+ DesktopNotificationService* service = |
+ DesktopNotificationServiceFactory::GetForProfile( |
+ profile_notification->profile()); |
+ service->SetExtensionEnabled(extension_id, false); |
} |
void MessageCenterNotificationManager::DisableNotificationsFromSource( |