| OLD | NEW |
| 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 Loading... |
| 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 } | |
| OLD | NEW |