There is no more NotificationError
This commit is contained in:
parent
0e7f09523b
commit
8ff0b050f8
1 changed files with 2 additions and 3 deletions
|
@ -12,7 +12,7 @@
|
|||
using namespace ABI::Windows::Data::Xml::Dom;
|
||||
|
||||
namespace brightray {
|
||||
|
||||
|
||||
WindowsToastNotification::WindowsToastNotification(
|
||||
const std::string& app_name,
|
||||
scoped_ptr<content::DesktopNotificationDelegate> delegate)
|
||||
|
@ -20,7 +20,7 @@ WindowsToastNotification::WindowsToastNotification(
|
|||
weak_factory_(this) {
|
||||
// If it wasn't for Windows 7, we could do this statically
|
||||
HRESULT init = Windows::Foundation::Initialize(RO_INIT_MULTITHREADED);
|
||||
|
||||
|
||||
ScopedHString toast_manager_str(
|
||||
RuntimeClass_Windows_UI_Notifications_ToastNotificationManager);
|
||||
if (!toast_manager_str.success())
|
||||
|
@ -86,7 +86,6 @@ void WindowsToastNotification::NotificationDismissed() {
|
|||
}
|
||||
|
||||
void WindowsToastNotification::NotificationFailed() {
|
||||
delegate_->NotificationError();
|
||||
delete this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue