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

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

Issue 20136004: Allow partial update for notification update API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix trybots Created 7 years, 5 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 d0cbb7e7d14ee990070d5b1289ff378e1c853580..5c79cd92d0063d019917beea04567489d0a53e2d 100644
--- a/chrome/browser/notifications/message_center_notification_manager.cc
+++ b/chrome/browser/notifications/message_center_notification_manager.cc
@@ -64,12 +64,15 @@ MessageCenterNotificationManager::~MessageCenterNotificationManager() {
////////////////////////////////////////////////////////////////////////////////
// NotificationUIManager
-bool MessageCenterNotificationManager::DoesIdExist(const std::string& id) {
- if (NotificationUIManagerImpl::DoesIdExist(id))
+bool MessageCenterNotificationManager::DoesIdExist(
+ const std::string& id, Notification* matched_notification) {
+ if (NotificationUIManagerImpl::DoesIdExist(id, matched_notification))
return true;
NotificationMap::iterator iter = profile_notifications_.find(id);
if (iter == profile_notifications_.end())
return false;
+ if (matched_notification)
+ *matched_notification = iter->second->notification();
return true;
}

Powered by Google App Engine
This is Rietveld 408576698