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

Unified Diff: content/renderer/dom_storage/webstoragenamespace_impl.cc

Issue 1568073002: Reduce string copies in GURL creation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: content/renderer/dom_storage/webstoragenamespace_impl.cc
diff --git a/content/renderer/dom_storage/webstoragenamespace_impl.cc b/content/renderer/dom_storage/webstoragenamespace_impl.cc
index 4c86057d75cdb53e10d34474830bc3e4cba89d0c..8ddc80219637be9bd7a0dd831f8221eda0f14caf 100644
--- a/content/renderer/dom_storage/webstoragenamespace_impl.cc
+++ b/content/renderer/dom_storage/webstoragenamespace_impl.cc
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "content/common/dom_storage/dom_storage_types.h"
+#include "content/public/child/url_conversion.h"
#include "content/renderer/dom_storage/webstoragearea_impl.h"
#include "third_party/WebKit/public/platform/WebString.h"
#include "url/gurl.h"
@@ -30,7 +31,7 @@ WebStorageNamespaceImpl::~WebStorageNamespaceImpl() {
WebStorageArea* WebStorageNamespaceImpl::createStorageArea(
const WebString& origin) {
- return new WebStorageAreaImpl(namespace_id_, GURL(origin));
+ return new WebStorageAreaImpl(namespace_id_, WebStringToGURL(origin));
}
WebStorageNamespace* WebStorageNamespaceImpl::copy() {

Powered by Google App Engine
This is Rietveld 408576698