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

Unified Diff: third_party/WebKit/Source/modules/storage/StorageNamespace.cpp

Issue 2382973002: Convert WebSecurityOrigin -> GURL without re-parsing the url (Closed)
Patch Set: rebase on #427122 Created 4 years, 2 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
« no previous file with comments | « media/blink/webmediaplayer_util.cc ('k') | third_party/WebKit/public/platform/WebStorageNamespace.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 66a55cac4aeb6931f7770549fca55c2b181cda60..1023768ac54017f5ca5fcec17105caa292ae5a50 100644
--- a/third_party/WebKit/Source/modules/storage/StorageNamespace.cpp
+++ b/third_party/WebKit/Source/modules/storage/StorageNamespace.cpp
@@ -28,6 +28,7 @@
#include "modules/storage/StorageArea.h"
#include "platform/weborigin/SecurityOrigin.h"
#include "public/platform/Platform.h"
+#include "public/platform/WebSecurityOrigin.h"
#include "public/platform/WebStorageArea.h"
#include "public/platform/WebStorageNamespace.h"
#include "wtf/PtrUtil.h"
@@ -47,13 +48,15 @@ StorageArea* StorageNamespace::localStorageArea(SecurityOrigin* origin) {
if (!localStorageNamespace)
localStorageNamespace = Platform::current()->createLocalStorageNamespace();
return StorageArea::create(
- wrapUnique(localStorageNamespace->createStorageArea(origin->toString())),
+ wrapUnique(
+ localStorageNamespace->createStorageArea(WebSecurityOrigin(origin))),
LocalStorage);
}
StorageArea* StorageNamespace::storageArea(SecurityOrigin* origin) {
return StorageArea::create(
- wrapUnique(m_webStorageNamespace->createStorageArea(origin->toString())),
+ wrapUnique(
+ m_webStorageNamespace->createStorageArea(WebSecurityOrigin(origin))),
SessionStorage);
}
« no previous file with comments | « media/blink/webmediaplayer_util.cc ('k') | third_party/WebKit/public/platform/WebStorageNamespace.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698