Use NotificationPresenterWin7 on Windows 7

This commit is contained in:
Ales Pergl 2017-03-15 13:58:53 +01:00
parent fe05b66a6c
commit 0fa6c82b3f
2 changed files with 6 additions and 10 deletions

View file

@ -13,10 +13,6 @@
#include "browser/platform_notification_service.h"
#include "content/public/common/url_constants.h"
#if defined(OS_WIN)
#include "base/win/windows_version.h"
#endif
namespace brightray {
namespace {
@ -39,12 +35,6 @@ BrowserClient::~BrowserClient() {
}
NotificationPresenter* BrowserClient::GetNotificationPresenter() {
#if defined(OS_WIN)
// Bail out if on Windows 7 or even lower, no operating will follow
if (base::win::GetVersion() < base::win::VERSION_WIN8)
return nullptr;
#endif
if (!notification_presenter_) {
// Create a new presenter if on OS X, Linux, or Windows 8+
notification_presenter_.reset(NotificationPresenter::Create());