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

Unified Diff: content/browser/media/cdm/browser_cdm_manager.cc

Issue 1020683003: Make content::PermissionType an enum class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android compile Created 5 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 1c1b157968d727916ff94ce14e9389966eac5275..2f33760aedbb0fa171cf8961b263fe9de585089d 100644
--- a/content/browser/media/cdm/browser_cdm_manager.cc
+++ b/content/browser/media/cdm/browser_cdm_manager.cc
@@ -13,6 +13,7 @@
#include "content/common/media/cdm_messages.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/content_browser_client.h"
+#include "content/public/browser/permission_type.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
@@ -522,7 +523,7 @@ void BrowserCdmManager::CheckPermissionStatusOnUIThread(
PermissionStatus permission_status =
GetContentClient()->browser()->GetPermissionStatus(
- content::PERMISSION_PROTECTED_MEDIA_IDENTIFIER,
+ content::PermissionType::PROTECTED_MEDIA_IDENTIFIER,
web_contents->GetBrowserContext(), security_origin, embedding_origin);
bool allowed = (permission_status == PERMISSION_STATUS_GRANTED);
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/permissions/permission_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698