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

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
« no previous file with comments | « content/child/notifications/notification_manager.cc ('k') | content/renderer/drop_data_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e87a857d8f751904c95d4089425bd0910b2b0c3b 100644
--- a/content/renderer/dom_storage/webstoragenamespace_impl.cc
+++ b/content/renderer/dom_storage/webstoragenamespace_impl.cc
@@ -7,6 +7,7 @@
#include "base/logging.h"
#include "content/common/dom_storage/dom_storage_types.h"
#include "content/renderer/dom_storage/webstoragearea_impl.h"
+#include "third_party/WebKit/public/platform/URLConversion.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_, blink::WebStringToGURL(origin));
}
WebStorageNamespace* WebStorageNamespaceImpl::copy() {
« no previous file with comments | « content/child/notifications/notification_manager.cc ('k') | content/renderer/drop_data_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698