| Index: content/child/notifications/notification_manager.cc
|
| diff --git a/content/child/notifications/notification_manager.cc b/content/child/notifications/notification_manager.cc
|
| index bb9ab7a9d2ef62a19ff0cc0e6a7f070f6a0226b6..e3b867e35ba4f57d0de6f8e281d1cd9af4ae3897 100644
|
| --- a/content/child/notifications/notification_manager.cc
|
| +++ b/content/child/notifications/notification_manager.cc
|
| @@ -147,7 +147,7 @@ void NotificationManager::showPersistent(
|
| int request_id =
|
| notification_dispatcher_->GenerateNotificationId(CurrentWorkerId());
|
|
|
| - pending_show_notification_requests_.AddWithID(owned_callbacks.release(),
|
| + pending_show_notification_requests_.AddWithID(std::move(owned_callbacks),
|
| request_id);
|
|
|
| // TODO(mkwst): This is potentially doing the wrong thing with unique
|
| @@ -179,7 +179,9 @@ void NotificationManager::getNotifications(
|
| int request_id =
|
| notification_dispatcher_->GenerateNotificationId(CurrentWorkerId());
|
|
|
| - pending_get_notification_requests_.AddWithID(callbacks, request_id);
|
| + pending_get_notification_requests_.AddWithID(
|
| + std::unique_ptr<blink::WebNotificationGetCallbacks>(callbacks),
|
| + request_id);
|
|
|
| thread_safe_sender_->Send(new PlatformNotificationHostMsg_GetNotifications(
|
| request_id, service_worker_registration_id, origin,
|
|
|