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

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: Rebase. Created 4 years, 9 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 | « chromecast/browser/cast_permission_manager.cc ('k') | content/browser/media/cdm/browser_cdm_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5c47a5e73341b62b98a43d514dd642f74ffa96aa..0c3453efd83cf88c6c60734015061e056d63b7d1 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -79,6 +79,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"
@@ -2563,10 +2564,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(
« no previous file with comments | « chromecast/browser/cast_permission_manager.cc ('k') | content/browser/media/cdm/browser_cdm_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698