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

Unified Diff: chrome/renderer/worker_content_settings_client_proxy.cc

Issue 2382973002: Convert WebSecurityOrigin -> GURL without re-parsing the url (Closed)
Patch Set: rebase 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
Index: chrome/renderer/worker_content_settings_client_proxy.cc
diff --git a/chrome/renderer/worker_content_settings_client_proxy.cc b/chrome/renderer/worker_content_settings_client_proxy.cc
index a98867ccd0b5e7705d3cf08e675ef83e974db68a..924998d5e8d196333a8b3e4c408f2d75a3d88b3b 100644
--- a/chrome/renderer/worker_content_settings_client_proxy.cc
+++ b/chrome/renderer/worker_content_settings_client_proxy.cc
@@ -13,6 +13,7 @@
#include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
#include "third_party/WebKit/public/web/WebDocument.h"
#include "third_party/WebKit/public/web/WebFrame.h"
+#include "url/origin.h"
WorkerContentSettingsClientProxy::WorkerContentSettingsClientProxy(
content::RenderFrame* render_frame,
@@ -24,9 +25,9 @@ WorkerContentSettingsClientProxy::WorkerContentSettingsClientProxy(
is_unique_origin_ = true;
sync_message_filter_ = content::RenderThread::Get()->GetSyncMessageFilter();
document_origin_url_ =
- blink::WebStringToGURL(frame->document().getSecurityOrigin().toString());
+ url::Origin(frame->document().getSecurityOrigin()).GetURL();
top_frame_origin_url_ =
- blink::WebStringToGURL(frame->top()->getSecurityOrigin().toString());
+ url::Origin(frame->top()->getSecurityOrigin()).GetURL();
}
WorkerContentSettingsClientProxy::~WorkerContentSettingsClientProxy() {}

Powered by Google App Engine
This is Rietveld 408576698