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

Unified Diff: third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h

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/public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h
diff --git a/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h b/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h
index 6ca5e693b3150ef89c9aab9dcdec387bb1001fc7..c3ac9dec62b027a1a11c2fc30819d89ce929b1b0 100644
--- a/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h
+++ b/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h
@@ -7,12 +7,13 @@
#include "public/platform/WebCallbacks.h"
#include "public/platform/WebPageVisibilityState.h"
-#include "public/platform/WebPassOwnPtr.h"
#include "public/platform/WebURL.h"
#include "public/platform/WebURLRequest.h"
#include "public/platform/WebVector.h"
#include "public/platform/modules/serviceworker/WebServiceWorkerClientType.h"
+#include <memory>
+
namespace blink {
struct WebServiceWorkerError;
@@ -40,7 +41,7 @@ struct WebServiceWorkerClientsInfo {
};
// Two WebCallbacks, one for one client, one for a WebVector of clients.
-using WebServiceWorkerClientCallbacks = WebCallbacks<WebPassOwnPtr<WebServiceWorkerClientInfo>, const WebServiceWorkerError&>;
+using WebServiceWorkerClientCallbacks = WebCallbacks<std::unique_ptr<WebServiceWorkerClientInfo>, const WebServiceWorkerError&>;
using WebServiceWorkerClientsCallbacks = WebCallbacks<const WebServiceWorkerClientsInfo&, const WebServiceWorkerError&>;
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698