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

Unified Diff: third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.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/InspectorCacheStorageAgent.cpp
diff --git a/third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp b/third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
index 08cc6ca936d6540c63baec1637c070235b0fcbd7..cf846c286d47e1535a57e417a45215186965c23f 100644
--- a/third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
+++ b/third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
@@ -75,8 +75,8 @@ Response AssertCacheStorage(
if (!sec_origin->IsPotentiallyTrustworthy())
return Response::Error(sec_origin->IsPotentiallyTrustworthyErrorMessage());
- std::unique_ptr<WebServiceWorkerCacheStorage> cache = WTF::WrapUnique(
- Platform::Current()->CacheStorage(WebSecurityOrigin(sec_origin)));
+ std::unique_ptr<WebServiceWorkerCacheStorage> cache =
+ Platform::Current()->CreateCacheStorage(WebSecurityOrigin(sec_origin));
if (!cache)
return Response::Error("Could not find cache storage.");
result = std::move(cache);

Powered by Google App Engine
This is Rietveld 408576698