Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1237)

Unified Diff: chrome/browser/notifications/message_center_notification_manager.cc

Issue 13421008: Fix menu for 'disable extension'. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/api/notifications/notifications_api.cc ('k') | ui/base/strings/ui_strings.grd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « chrome/browser/extensions/api/notifications/notifications_api.cc ('k') | ui/base/strings/ui_strings.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698