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

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

Issue 1726323002: Have Permission{Manager,Service} use Origin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Blimp interface. Created 4 years, 10 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_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index 02c0e72ce1abc241e2de770d0bd89a7c5c6e7843..c72a2287c55cabf19795383545c2150271310d5d 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -77,6 +77,7 @@
#include "ui/accessibility/ax_tree.h"
#include "ui/accessibility/ax_tree_update.h"
#include "url/gurl.h"
+#include "url/origin.h"
#if defined(OS_ANDROID)
#include "content/browser/mojo/service_registrar_android.h"
@@ -2511,10 +2512,11 @@ void RenderFrameHostImpl::DidUseGeolocationPermission() {
return;
permission_manager->RegisterPermissionUsage(
- PermissionType::GEOLOCATION,
- last_committed_url().GetOrigin(),
- frame_tree_node()->frame_tree()->GetMainFrame()
- ->last_committed_url().GetOrigin());
+ PermissionType::GEOLOCATION, url::Origin(last_committed_url()),
+ url::Origin(frame_tree_node()
+ ->frame_tree()
+ ->GetMainFrame()
+ ->last_committed_url()));
}
void RenderFrameHostImpl::UpdatePermissionsForNavigation(

Powered by Google App Engine
This is Rietveld 408576698