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

Side by Side Diff: chrome/browser/notifications/stub_notification_platform_bridge.cc

Issue 2300093002: Make //content responsible for generating notification Ids (Closed)
Patch Set: rebase + comments Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/notifications/stub_notification_platform_bridge.h" 5 #include "chrome/browser/notifications/stub_notification_platform_bridge.h"
6 6
7 StubNotificationPlatformBridge::StubNotificationPlatformBridge() 7 StubNotificationPlatformBridge::StubNotificationPlatformBridge()
8 : NotificationPlatformBridge() {} 8 : NotificationPlatformBridge() {}
9 9
10 StubNotificationPlatformBridge::~StubNotificationPlatformBridge() {} 10 StubNotificationPlatformBridge::~StubNotificationPlatformBridge() {}
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 std::set<std::string>* notifications) const { 49 std::set<std::string>* notifications) const {
50 if (notifications_.find(profile_id) == notifications_.end()) 50 if (notifications_.find(profile_id) == notifications_.end())
51 return true; 51 return true;
52 52
53 const std::vector<Notification>& profile_notifications = 53 const std::vector<Notification>& profile_notifications =
54 notifications_.at(profile_id); 54 notifications_.at(profile_id);
55 for (auto notification : profile_notifications) 55 for (auto notification : profile_notifications)
56 notifications->insert(notification.id()); 56 notifications->insert(notification.id());
57 return true; 57 return true;
58 } 58 }
59
60 bool StubNotificationPlatformBridge::SupportsNotificationCenter() const {
61 return false;
62 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698