Addressed review feedback
This commit is contained in:
parent
f73233ee55
commit
fbe3b27409
2 changed files with 0 additions and 3 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue