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

Unified Diff: content/browser/frame_host/render_frame_message_filter.cc

Issue 2385533002: Replace usage of GURL(origin.Serialize()) with origin.GetURL() (Closed)
Patch Set: ncarter comments 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: content/browser/frame_host/render_frame_message_filter.cc
diff --git a/content/browser/frame_host/render_frame_message_filter.cc b/content/browser/frame_host/render_frame_message_filter.cc
index e5e7bb9b322ee5076a97bc241c7f4ea14e158c7e..eedce4ad9c12acd764076bd77424ba0d9a5cb1c5 100644
--- a/content/browser/frame_host/render_frame_message_filter.cc
+++ b/content/browser/frame_host/render_frame_message_filter.cc
@@ -35,6 +35,7 @@
#include "net/url_request/url_request_context_getter.h"
#include "storage/browser/blob/blob_storage_context.h"
#include "url/gurl.h"
+#include "url/origin.h"
#if !defined(OS_MACOSX)
#include "third_party/khronos/GLES2/gl2.h"
@@ -492,8 +493,7 @@ void RenderFrameMessageFilter::GetPluginsCallback(
int child_process_id = -1;
int routing_id = MSG_ROUTING_NONE;
- GURL policy_url =
- main_frame_origin.unique() ? GURL() : GURL(main_frame_origin.Serialize());
+ GURL policy_url = main_frame_origin.GetURL();
// In this loop, copy the WebPluginInfo (and do not use a reference) because
// the filter might mutate it.
for (WebPluginInfo plugin : all_plugins) {

Powered by Google App Engine
This is Rietveld 408576698