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(
|
||||
NotificationDelegate* delegate) {
|
||||
Notification* notification = CreateNotificationObject(delegate);
|
||||
if (!notification) return {};
|
||||
notifications_.insert(notification);
|
||||
return notification->GetWeakPtr();
|
||||
}
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue