mirror of
https://github.com/electron/electron.git
synced 2026-01-26 15:58:07 -05:00
Addressed review feedback
This commit is contained in:
@@ -19,7 +19,6 @@ NotificationPresenter::~NotificationPresenter() {
|
||||
base::WeakPtr<Notification> NotificationPresenter::CreateNotification(
|
||||
NotificationDelegate* delegate) {
|
||||
Notification* notification = CreateNotificationObject(delegate);
|
||||
if (!notification) return {};
|
||||
notifications_.insert(notification);
|
||||
return notification->GetWeakPtr();
|
||||
}
|
||||
|
||||
@@ -38,8 +38,6 @@ bool SaveIconToPath(const SkBitmap& bitmap, const base::FilePath& path) {
|
||||
// static
|
||||
NotificationPresenter* NotificationPresenter::Create() {
|
||||
auto version = base::win::GetVersion();
|
||||
if (version < base::win::VERSION_WIN7)
|
||||
return nullptr;
|
||||
if (version < base::win::VERSION_WIN8)
|
||||
return new NotificationPresenterWin7;
|
||||
if (!WindowsToastNotification::Initialize())
|
||||
|
||||
Reference in New Issue
Block a user