Skip to content

Commit

Permalink
fix: incorrect case in content::PermissionType mapping (#27423)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Jan 21, 2021
1 parent aa4f355 commit f398ba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/common/gin_converters/content_converter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ v8::Local<v8::Value> Converter<content::PermissionType>::ToV8(
return StringToV8(isolate, "clipboard-sanitized-write");
case content::PermissionType::FLASH:
return StringToV8(isolate, "flash");
case content::PermissionType::CAMERA_PAN_TILT_ZOOM:
case content::PermissionType::FONT_ACCESS:
return StringToV8(isolate, "font-access");
case content::PermissionType::IDLE_DETECTION:
Expand All @@ -211,6 +210,7 @@ v8::Local<v8::Value> Converter<content::PermissionType>::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");
Expand Down

0 comments on commit f398ba0

Please sign in to comment.