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

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

Issue 768373002: Remove DesktopNotificationService::AddIconNotification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove comment Created 6 years 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/desktop_notification_service.cc
diff --git a/chrome/browser/notifications/desktop_notification_service.cc b/chrome/browser/notifications/desktop_notification_service.cc
index 585ac4ac701b35a8d1803d509a98833b47abdb65..df4d5cbaa0721e46e6e2335507986fc7432b0844 100644
--- a/chrome/browser/notifications/desktop_notification_service.cc
+++ b/chrome/browser/notifications/desktop_notification_service.cc
@@ -62,30 +62,6 @@ void DesktopNotificationService::RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
}
-// static
-std::string DesktopNotificationService::AddIconNotification(
- const GURL& origin_url,
- const base::string16& title,
- const base::string16& message,
- const gfx::Image& icon,
- const base::string16& replace_id,
- NotificationDelegate* delegate,
- Profile* profile) {
- Notification notification(message_center::NOTIFICATION_TYPE_SIMPLE,
- origin_url,
- title,
- message,
- icon,
- blink::WebTextDirectionDefault,
- NotifierId(origin_url),
- base::string16(),
- replace_id,
- message_center::RichNotificationData(),
- delegate);
- g_browser_process->notification_ui_manager()->Add(notification, profile);
- return notification.delegate_id();
-}
-
DesktopNotificationService::DesktopNotificationService(Profile* profile)
: PermissionContextBase(profile, CONTENT_SETTINGS_TYPE_NOTIFICATIONS),
profile_(profile)

Powered by Google App Engine
This is Rietveld 408576698