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

Unified Diff: chrome/browser/media/media_capture_devices_dispatcher.cc

Issue 488353004: Whitelist the new hotwording component extension for media capture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment. Created 6 years, 4 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
« no previous file with comments | « no previous file | chrome/common/extensions/api/_permission_features.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/media_capture_devices_dispatcher.cc
diff --git a/chrome/browser/media/media_capture_devices_dispatcher.cc b/chrome/browser/media/media_capture_devices_dispatcher.cc
index 30d3d75907ca135ef6cfd8cdabc637ed10793d2f..42d8eb00abf77391403e414347d8fe0ac55b1579 100644
--- a/chrome/browser/media/media_capture_devices_dispatcher.cc
+++ b/chrome/browser/media/media_capture_devices_dispatcher.cc
@@ -100,6 +100,7 @@ const content::MediaStreamDevice* FindDeviceWithId(
// 3. Flutter gesture recognition extension.
// 4. TODO(smus): Airbender experiment 1.
// 5. TODO(smus): Airbender experiment 2.
+// 6. Hotwording component extension.
// Once http://crbug.com/292856 is fixed, remove this whitelist.
bool IsMediaRequestWhitelistedForExtension(
const extensions::Extension* extension) {
@@ -107,7 +108,8 @@ bool IsMediaRequestWhitelistedForExtension(
extension->id() == "bepbmhgboaologfdajaanbcjmnhjmhfn" ||
extension->id() == "jokbpnebhdcladagohdnfgjcpejggllo" ||
extension->id() == "clffjmdilanldobdnedchkdbofoimcgb" ||
- extension->id() == "nnckehldicaciogcbchegobnafnjkcne";
+ extension->id() == "nnckehldicaciogcbchegobnafnjkcne" ||
+ extension->id() == "nbpagnldghgfoolbancepceaanlmhfmd";
}
bool IsBuiltInExtension(const GURL& origin) {
« no previous file with comments | « no previous file | chrome/common/extensions/api/_permission_features.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698