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

Unified Diff: third_party/WebKit/Source/modules/storage/StorageNamespace.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/storage/StorageNamespace.cpp
diff --git a/third_party/WebKit/Source/modules/storage/StorageNamespace.cpp b/third_party/WebKit/Source/modules/storage/StorageNamespace.cpp
index ea002bb83227a1900622ee591d8252b7dbae9ec1..2b62537e08acc5a456108471526d871865ba03c9 100644
--- a/third_party/WebKit/Source/modules/storage/StorageNamespace.cpp
+++ b/third_party/WebKit/Source/modules/storage/StorageNamespace.cpp
@@ -44,7 +44,7 @@ StorageNamespace::~StorageNamespace() {}
StorageArea* StorageNamespace::LocalStorageArea(SecurityOrigin* origin) {
DCHECK(IsMainThread());
- static WebStorageNamespace* local_storage_namespace = nullptr;
+ static std::unique_ptr<WebStorageNamespace> local_storage_namespace = nullptr;
if (!local_storage_namespace)
local_storage_namespace =
Platform::Current()->CreateLocalStorageNamespace();

Powered by Google App Engine
This is Rietveld 408576698