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

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

Issue 566093002: Remove NotificationDelegate::process_id(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
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 17e177fd88109a650310103072644a2b8791fd49..28c5f795178c2f9ee2a680958fdadc54a4e88240 100644
--- a/chrome/browser/notifications/message_center_notification_manager.cc
+++ b/chrome/browser/notifications/message_center_notification_manager.cc
@@ -482,29 +482,6 @@ MessageCenterNotificationManager::ProfileNotification::OnDownloadsCompleted() {
notification_.DoneRendering();
}
-std::string
- MessageCenterNotificationManager::ProfileNotification::GetExtensionId() {
- extensions::InfoMap* extension_info_map =
- extensions::ExtensionSystem::Get(profile())->info_map();
- extensions::ExtensionSet extensions;
- extension_info_map->GetExtensionsWithAPIPermissionForSecurityOrigin(
- notification().origin_url(),
- notification().process_id(),
- extensions::APIPermission::kNotifications,
- &extensions);
-
- DesktopNotificationService* desktop_service =
- DesktopNotificationServiceFactory::GetForProfile(profile());
- for (extensions::ExtensionSet::const_iterator iter = extensions.begin();
- iter != extensions.end(); ++iter) {
- if (desktop_service->IsNotifierEnabled(message_center::NotifierId(
- message_center::NotifierId::APPLICATION, (*iter)->id()))) {
- return (*iter)->id();
- }
- }
- return std::string();
-}
-
void
MessageCenterNotificationManager::ProfileNotification::AddToAlternateProvider(
const std::string extension_id) {
« no previous file with comments | « chrome/browser/notifications/message_center_notification_manager.h ('k') | chrome/browser/notifications/notification.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698