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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClients.cpp

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: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClients.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClients.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClients.cpp
index 0e458ccfd6f99ce3f52a442981c4733d417b116d..4805bf94adb72b94385935d1d69b402f9f538df2 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClients.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClients.cpp
@@ -66,9 +66,9 @@ public:
: m_resolver(resolver) { }
~GetCallback() override { }
- void onSuccess(WebPassOwnPtr<WebServiceWorkerClientInfo> webClient) override
+ void onSuccess(std::unique_ptr<WebServiceWorkerClientInfo> webClient) override
{
- OwnPtr<WebServiceWorkerClientInfo> client = webClient.release();
+ OwnPtr<WebServiceWorkerClientInfo> client = adoptPtr(webClient.release());
if (!m_resolver->getExecutionContext() || m_resolver->getExecutionContext()->activeDOMObjectsAreStopped())
return;
if (!client) {

Powered by Google App Engine
This is Rietveld 408576698