FIXME: Move persistent notification id from notification database to profile

https://chromium-review.googlesource.com/c/chromium/src/+/1114840
This commit is contained in:
Jeremy Apthorp 2018-10-02 13:52:21 -07:00
parent d13e3324c6
commit 95cec24387
2 changed files with 8 additions and 0 deletions

View file

@ -121,4 +121,10 @@ void PlatformNotificationService::GetDisplayedNotifications(
content::BrowserContext* browser_context, content::BrowserContext* browser_context,
const DisplayedNotificationsCallback& callback) {} const DisplayedNotificationsCallback& callback) {}
int64_t PlatformNotificationService::ReadNextPersistentNotificationId(
content::BrowserContext* browser_context) {
// Electron doesn't support persistent notifications.
return 0;
}
} // namespace brightray } // namespace brightray

View file

@ -43,6 +43,8 @@ class PlatformNotificationService
void GetDisplayedNotifications( void GetDisplayedNotifications(
content::BrowserContext* browser_context, content::BrowserContext* browser_context,
const DisplayedNotificationsCallback& callback) override; const DisplayedNotificationsCallback& callback) override;
int64_t ReadNextPersistentNotificationId(
content::BrowserContext* browser_context) override;
private: private:
BrowserClient* browser_client_; BrowserClient* browser_client_;