From 21024011d748998b17eb2253b00147a1a21ac399 Mon Sep 17 00:00:00 2001 From: Nick Harper Date: Tue, 15 Dec 2020 11:14:42 -0800 Subject: [PATCH] fix: incorrect case in content::PermissionType mapping (#27006) --- shell/common/gin_converters/content_converter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/common/gin_converters/content_converter.cc b/shell/common/gin_converters/content_converter.cc index 548692a699..57f6bf70cd 100644 --- a/shell/common/gin_converters/content_converter.cc +++ b/shell/common/gin_converters/content_converter.cc @@ -190,7 +190,6 @@ v8::Local Converter::ToV8( return StringToV8(isolate, "clipboard-read"); case content::PermissionType::CLIPBOARD_SANITIZED_WRITE: return StringToV8(isolate, "clipboard-sanitized-write"); - case content::PermissionType::CAMERA_PAN_TILT_ZOOM: case content::PermissionType::FONT_ACCESS: return StringToV8(isolate, "font-access"); case content::PermissionType::IDLE_DETECTION: @@ -209,6 +208,7 @@ v8::Local Converter::ToV8( return StringToV8(isolate, "persistent-storage"); case content::PermissionType::GEOLOCATION: return StringToV8(isolate, "geolocation"); + case content::PermissionType::CAMERA_PAN_TILT_ZOOM: case content::PermissionType::AUDIO_CAPTURE: case content::PermissionType::VIDEO_CAPTURE: return StringToV8(isolate, "media");