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())