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

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

Issue 2821533003: Refactor NotificationPlatformBridgeLinux (Closed)
Patch Set: final comments Created 3 years, 8 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 #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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698