Addressed review feedback

This commit is contained in:
Ales Pergl 2017-04-05 14:27:52 +02:00
parent f73233ee55
commit fbe3b27409
2 changed files with 0 additions and 3 deletions

View file

@ -19,7 +19,6 @@ NotificationPresenter::~NotificationPresenter() {
base::WeakPtr<Notification> NotificationPresenter::CreateNotification( base::WeakPtr<Notification> NotificationPresenter::CreateNotification(
NotificationDelegate* delegate) { NotificationDelegate* delegate) {
Notification* notification = CreateNotificationObject(delegate); Notification* notification = CreateNotificationObject(delegate);
if (!notification) return {};
notifications_.insert(notification); notifications_.insert(notification);
return notification->GetWeakPtr(); return notification->GetWeakPtr();
} }

View file

@ -38,8 +38,6 @@ bool SaveIconToPath(const SkBitmap& bitmap, const base::FilePath& path) {
// static // static
NotificationPresenter* NotificationPresenter::Create() { NotificationPresenter* NotificationPresenter::Create() {
auto version = base::win::GetVersion(); auto version = base::win::GetVersion();
if (version < base::win::VERSION_WIN7)
return nullptr;
if (version < base::win::VERSION_WIN8) if (version < base::win::VERSION_WIN8)
return new NotificationPresenterWin7; return new NotificationPresenterWin7;
if (!WindowsToastNotification::Initialize()) if (!WindowsToastNotification::Initialize())