| 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 63508b3e29baa9914c59d5139ee622d74085dd82..50a3430c7d5f25a02a3006593ceb9e1bb3b814e3 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);
|
|
|
|
|