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

Unified Diff: content/child/service_worker/service_worker_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/child/service_worker/service_worker_dispatcher.cc
diff --git a/content/child/service_worker/service_worker_dispatcher.cc b/content/child/service_worker/service_worker_dispatcher.cc
index 72ba685d36882778c53fa604890cf669bf175060..57d3ce1159d746f61ced501f6a5c6951e1b6671e 100644
--- a/content/child/service_worker/service_worker_dispatcher.cc
+++ b/content/child/service_worker/service_worker_dispatcher.cc
@@ -481,14 +481,14 @@ void ServiceWorkerDispatcher::OnDidGetRegistrations(
ServiceWorkerVersionAttributes attr(attrs[i]);
// WebServiceWorkerGetRegistrationsCallbacks cannot receive an array of
- // WebPassOwnPtr<WebServiceWorkerRegistration::Handle>, so create leaky
+ // std::unique_ptr<WebServiceWorkerRegistration::Handle>, so create leaky
// handles instead.
(*registrations)[i] = WebServiceWorkerRegistrationImpl::CreateLeakyHandle(
GetOrAdoptRegistration(info, attr));
}
}
- callbacks->onSuccess(blink::adoptWebPtr(registrations.release()));
+ callbacks->onSuccess(std::move(registrations));
pending_get_registrations_callbacks_.Remove(request_id);
}
« no previous file with comments | « content/child/push_messaging/push_provider.cc ('k') | content/child/service_worker/service_worker_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698