| Index: extensions/common/extension.cc
|
| diff --git a/extensions/common/extension.cc b/extensions/common/extension.cc
|
| index 1e973fccc82b2e57b533dae0168271be8fa4a3b9..fecbe8e8e9b29f0abfdf3092eda7e8729f54e102 100644
|
| --- a/extensions/common/extension.cc
|
| +++ b/extensions/common/extension.cc
|
| @@ -432,6 +432,26 @@ bool Extension::is_theme() const {
|
| return manifest()->is_theme();
|
| }
|
|
|
| +// This is a short-term solution to grant camera and/or microphone access to
|
| +// extensions:
|
| +// 1. Virtual keyboard extension.
|
| +// 2. Flutter gesture recognition extension.
|
| +// 3. TODO(smus): Airbender experiment 1.
|
| +// 4. TODO(smus): Airbender experiment 2.
|
| +// 5. Hotwording component extension.
|
| +// 6. XKB input method component extension.
|
| +// 7. M17n/T13n/CJK input method component extension.
|
| +// Once http://crbug.com/292856 is fixed, remove this whitelist.
|
| +bool Extension::is_media_request_white_listed() const {
|
| + return id() == "mppnpdlheglhdfmldimlhpnegondlapf" ||
|
| + id() == "jokbpnebhdcladagohdnfgjcpejggllo" ||
|
| + id() == "clffjmdilanldobdnedchkdbofoimcgb" ||
|
| + id() == "nnckehldicaciogcbchegobnafnjkcne" ||
|
| + id() == "nbpagnldghgfoolbancepceaanlmhfmd" ||
|
| + id() == "jkghodnilhceideoidjikpgommlajknk" ||
|
| + id() == "gjaehgfemfahhmlgpdfknkhdnemmolop";
|
| +}
|
| +
|
| bool Extension::can_be_incognito_enabled() const {
|
| // Only component platform apps are supported in incognito.
|
| return !is_platform_app() || location() == Manifest::COMPONENT;
|
|
|