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

Unified Diff: extensions/common/extension.cc

Issue 1095393004: Refactor: Make MediaCaptureDevicesDispatcher have pluggable handlers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 5 years, 8 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
« extensions/common/extension.h ('K') | « extensions/common/extension.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« extensions/common/extension.h ('K') | « extensions/common/extension.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698