Commit f34bd6f9 authored by Xi Cheng's avatar Xi Cheng Committed by Commit Bot

Implement NotificationPlatformBridgeWinImpl::OnFailed

Bug: 734095
Change-Id: Ie7226ab3811c7615ab7a077a243f744effa4ca5e
Reviewed-on: https://chromium-review.googlesource.com/979115
Commit-Queue: Xi Cheng <chengx@chromium.org>
Reviewed-by: default avatarFinnur Thorarinsson <finnur@chromium.org>
Cr-Commit-Position: refs/heads/master@{#546198}
parent be775f31
......@@ -763,11 +763,13 @@ class NotificationPlatformBridgeWinImpl
return S_OK;
}
HRESULT OnFailed(
winui::Notifications::IToastNotification* notification,
winui::Notifications::IToastFailedEventArgs* /* arguments */) {
// TODO(chengx): Investigate what the correct behavior should be here and
// implement it.
HRESULT OnFailed(winui::Notifications::IToastNotification* notification,
winui::Notifications::IToastFailedEventArgs* arguments) {
HRESULT error_code;
HRESULT hr = arguments->get_ErrorCode(&error_code);
DCHECK(SUCCEEDED(hr));
LOG(ERROR) << "Failed to raise the toast notification, error code: "
<< std::hex << error_code;
return S_OK;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment