Index: chrome/browser/notifications/platform_notification_service_impl.cc |
diff --git a/chrome/browser/notifications/platform_notification_service_impl.cc b/chrome/browser/notifications/platform_notification_service_impl.cc |
index da15f65a863f65c6f47c28b96dcb36ded24a7313..e4b99690826c10f8a822377a821bfaf586384529 100644 |
--- a/chrome/browser/notifications/platform_notification_service_impl.cc |
+++ b/chrome/browser/notifications/platform_notification_service_impl.cc |
@@ -335,6 +335,12 @@ Notification PlatformNotificationServiceImpl::CreateNotificationFromData( |
notification.set_vibration_pattern(notification_data.vibration_pattern); |
notification.set_silent(notification_data.silent); |
+ std::vector<message_center::ButtonInfo> buttons; |
+ for (const auto& action : notification_data.actions) |
+ buttons.push_back(message_center::ButtonInfo(action.title)); |
+ |
+ notification.set_buttons(buttons); |
+ |
// Web Notifications do not timeout. |
notification.set_never_timeout(true); |