From fbe3b27409fb855bdd19986c45ebfed7562abc07 Mon Sep 17 00:00:00 2001 From: Ales Pergl Date: Wed, 5 Apr 2017 14:27:52 +0200 Subject: [PATCH] Addressed review feedback --- brightray/browser/notification_presenter.cc | 1 - brightray/browser/win/notification_presenter_win.cc | 2 -- 2 files changed, 3 deletions(-) diff --git a/brightray/browser/notification_presenter.cc b/brightray/browser/notification_presenter.cc index 39c3efd7ddf5..30ef3b16b4b2 100644 --- a/brightray/browser/notification_presenter.cc +++ b/brightray/browser/notification_presenter.cc @@ -19,7 +19,6 @@ NotificationPresenter::~NotificationPresenter() { base::WeakPtr NotificationPresenter::CreateNotification( NotificationDelegate* delegate) { Notification* notification = CreateNotificationObject(delegate); - if (!notification) return {}; notifications_.insert(notification); return notification->GetWeakPtr(); } diff --git a/brightray/browser/win/notification_presenter_win.cc b/brightray/browser/win/notification_presenter_win.cc index 42819eada71f..930775c792b2 100644 --- a/brightray/browser/win/notification_presenter_win.cc +++ b/brightray/browser/win/notification_presenter_win.cc @@ -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())