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 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
9 | 9 |
10 StubNotificationPlatformBridge::StubNotificationPlatformBridge() | 10 StubNotificationPlatformBridge::StubNotificationPlatformBridge() |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 notifications_.at(profile_id); | 65 notifications_.at(profile_id); |
66 for (auto notification : profile_notifications) | 66 for (auto notification : profile_notifications) |
67 displayed_notifications->insert(notification.id()); | 67 displayed_notifications->insert(notification.id()); |
68 } | 68 } |
69 | 69 |
70 content::BrowserThread::PostTask( | 70 content::BrowserThread::PostTask( |
71 content::BrowserThread::UI, FROM_HERE, | 71 content::BrowserThread::UI, FROM_HERE, |
72 base::BindOnce(callback, base::Passed(&displayed_notifications), | 72 base::BindOnce(callback, base::Passed(&displayed_notifications), |
73 true /* supports_synchronization */)); | 73 true /* supports_synchronization */)); |
74 } | 74 } |
| 75 |
| 76 void StubNotificationPlatformBridge::SetReadyCallback( |
| 77 NotificationBridgeReadyCallback callback) { |
| 78 std::move(callback).Run(true); |
| 79 } |
OLD | NEW |