Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2367)

Unified Diff: content/renderer/push_messaging/push_messaging_dispatcher.cc

Issue 1865913005: Nuke WebPassOwnPtr<T> and replace it with std::unique_ptr<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/push_messaging/push_messaging_dispatcher.cc
diff --git a/content/renderer/push_messaging/push_messaging_dispatcher.cc b/content/renderer/push_messaging/push_messaging_dispatcher.cc
index 0bd40dc69bb480abe3dd8bf88c1098ff395800a7..1cfc044fb31a24b704dbe8e5c64891b7d977663c 100644
--- a/content/renderer/push_messaging/push_messaging_dispatcher.cc
+++ b/content/renderer/push_messaging/push_messaging_dispatcher.cc
@@ -4,6 +4,7 @@
#include "content/renderer/push_messaging/push_messaging_dispatcher.h"
+#include "base/memory/ptr_util.h"
#include "base/strings/utf_string_conversions.h"
#include "content/child/service_worker/web_service_worker_registration_impl.h"
#include "content/common/push_messaging_messages.h"
@@ -114,8 +115,8 @@ void PushMessagingDispatcher::OnSubscribeFromDocumentSuccess(
subscription_callbacks_.Lookup(request_id);
DCHECK(callbacks);
- callbacks->onSuccess(blink::adoptWebPtr(
- new blink::WebPushSubscription(endpoint, p256dh, auth)));
+ callbacks->onSuccess(
+ base::WrapUnique(new blink::WebPushSubscription(endpoint, p256dh, auth)));
subscription_callbacks_.Remove(request_id);
}

Powered by Google App Engine
This is Rietveld 408576698