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

Unified Diff: trunk/src/chrome/browser/notifications/message_center_notification_manager.h

Issue 469313002: Revert 289532 "Route newly created notifications to notification..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 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: trunk/src/chrome/browser/notifications/message_center_notification_manager.h
===================================================================
--- trunk/src/chrome/browser/notifications/message_center_notification_manager.h (revision 289543)
+++ trunk/src/chrome/browser/notifications/message_center_notification_manager.h (working copy)
@@ -181,9 +181,6 @@
// empty string otherwise.
std::string GetExtensionId();
- // Route a new notification to an app/extension.
- void AddToAlternateProvider(const std::string extension_id);
-
private:
// Weak, guaranteed not to be used after profile removal by parent class.
Profile* profile_;
@@ -200,8 +197,8 @@
typedef std::map<std::string, ProfileNotification*> NotificationMap;
NotificationMap profile_notifications_;
- // Helpers that add/remove the notification from local map.
- // The local map takes ownership of profile_notification object.
+ // Helpers that add/remove the notification from local map and MessageCenter.
+ // They take ownership of profile_notification object.
void AddProfileNotification(ProfileNotification* profile_notification);
void RemoveProfileNotification(ProfileNotification* profile_notification);
@@ -209,10 +206,6 @@
// notification is found.
ProfileNotification* FindProfileNotification(const std::string& id) const;
- // Get the extension ID of the extension that the user chose to take over
- // Chorme Notification Center.
- std::string GetExtensionTakingOverNotifications(Profile* profile);
-
#if defined(OS_WIN)
// This function is run on update to ensure that the notification balloon is
// shown only when there are no popups present.

Powered by Google App Engine
This is Rietveld 408576698