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

Unified Diff: third_party/WebKit/Source/modules/cachestorage/CacheStorage.cpp

Issue 2846843002: [blink] Unique pointers in Platform.h (Closed)
Patch Set: fix compilation (and again) Created 3 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/cachestorage/CacheStorage.cpp
diff --git a/third_party/WebKit/Source/modules/cachestorage/CacheStorage.cpp b/third_party/WebKit/Source/modules/cachestorage/CacheStorage.cpp
index 75d7ed2f78904afd05c5187df46520e6193fc43e..edc6154f60d57c525024cfdd106f8f3390fa90cd 100644
--- a/third_party/WebKit/Source/modules/cachestorage/CacheStorage.cpp
+++ b/third_party/WebKit/Source/modules/cachestorage/CacheStorage.cpp
@@ -226,8 +226,8 @@ class CacheStorage::KeysCallbacks final
CacheStorage* CacheStorage::Create(
GlobalFetch::ScopedFetcher* fetcher,
- WebServiceWorkerCacheStorage* web_cache_storage) {
- return new CacheStorage(fetcher, WTF::WrapUnique(web_cache_storage));
+ std::unique_ptr<WebServiceWorkerCacheStorage> web_cache_storage) {
+ return new CacheStorage(fetcher, std::move(web_cache_storage));
}
ScriptPromise CacheStorage::open(ScriptState* script_state,

Powered by Google App Engine
This is Rietveld 408576698