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

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

Issue 2480293004: Mandate unique_ptr for base::IDMap in IDMapOwnPointer mode. (Closed)
Patch Set: Make changes requested by danakj, fix a few more headers Created 4 years, 1 month 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/ServiceWorkerGlobalScope.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
index 9f8e912c70c8015057b56370418f3d3e6ee8cf03..b6196fd35820494cc90edfddbde8dbf5f8950738 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
@@ -63,6 +63,7 @@
#include "wtf/CurrentTime.h"
#include "wtf/PtrUtil.h"
#include <memory>
+#include <utility>
namespace blink {
@@ -166,7 +167,8 @@ ScriptPromise ServiceWorkerGlobalScope::skipWaiting(ScriptState* scriptState) {
ScriptPromise promise = resolver->promise();
ServiceWorkerGlobalScopeClient::from(executionContext)
- ->skipWaiting(new CallbackPromiseAdapter<void, void>(resolver));
+ ->skipWaiting(
+ WTF::makeUnique<CallbackPromiseAdapter<void, void>>(resolver));
return promise;
}

Powered by Google App Engine
This is Rietveld 408576698