mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Make GetDisplayedNotifications asynchronous.
https://codereview.chromium.org/2749453002
This commit is contained in:
@@ -109,10 +109,9 @@ void PlatformNotificationService::ClosePersistentNotification(
|
||||
const std::string& notification_id) {
|
||||
}
|
||||
|
||||
bool PlatformNotificationService::GetDisplayedNotifications(
|
||||
void PlatformNotificationService::GetDisplayedNotifications(
|
||||
content::BrowserContext* browser_context,
|
||||
std::set<std::string>* displayed_notifications) {
|
||||
return false;
|
||||
const DisplayedNotificationsCallback& callback) {
|
||||
}
|
||||
|
||||
} // namespace brightray
|
||||
|
||||
@@ -48,9 +48,9 @@ class PlatformNotificationService
|
||||
const content::NotificationResources& notification_resources) override;
|
||||
void ClosePersistentNotification(content::BrowserContext* browser_context,
|
||||
const std::string& notification_id) override;
|
||||
bool GetDisplayedNotifications(
|
||||
void GetDisplayedNotifications(
|
||||
content::BrowserContext* browser_context,
|
||||
std::set<std::string>* displayed_notifications) override;
|
||||
const DisplayedNotificationsCallback& callback) override;
|
||||
|
||||
private:
|
||||
BrowserClient* browser_client_;
|
||||
|
||||
Reference in New Issue
Block a user