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

Unified Diff: content/browser/media/cdm/browser_cdm_manager.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
Index: content/browser/media/cdm/browser_cdm_manager.cc
diff --git a/content/browser/media/cdm/browser_cdm_manager.cc b/content/browser/media/cdm/browser_cdm_manager.cc
index 1983967311a4ede086734cd57222f3feffc4dc82..a4a6ff7ef2dd8a63b73150a370340cd3f717c042 100644
--- a/content/browser/media/cdm/browser_cdm_manager.cc
+++ b/content/browser/media/cdm/browser_cdm_manager.cc
@@ -673,8 +673,9 @@ void BrowserCdmManager::CheckPermissionStatusOnUIThread(
mojom::PermissionStatus permission_status =
permission_manager->GetPermissionStatus(
- PermissionType::PROTECTED_MEDIA_IDENTIFIER, security_origin,
- web_contents->GetLastCommittedURL().GetOrigin());
+ PermissionType::PROTECTED_MEDIA_IDENTIFIER,
+ url::Origin(security_origin),
+ url::Origin(web_contents->GetLastCommittedURL()));
bool allowed = (permission_status == mojom::PermissionStatus::GRANTED);
if (!task_runner_->RunsTasksOnCurrentThread()) {
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/permissions/permission_service_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698