Commit ae0ec252 authored by amistry@chromium.org's avatar amistry@chromium.org

Whitelist the new hotwording component extension for media capture.

Stolen from https://codereview.chromium.org/118373003

BUG=397019

Review URL: https://codereview.chromium.org/488353004

Cr-Commit-Position: refs/heads/master@{#291283}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@291283 0039d316-1c4b-4281-b951-d872f2087c98
parent 16ba7748
...@@ -100,6 +100,7 @@ const content::MediaStreamDevice* FindDeviceWithId( ...@@ -100,6 +100,7 @@ const content::MediaStreamDevice* FindDeviceWithId(
// 3. Flutter gesture recognition extension. // 3. Flutter gesture recognition extension.
// 4. TODO(smus): Airbender experiment 1. // 4. TODO(smus): Airbender experiment 1.
// 5. TODO(smus): Airbender experiment 2. // 5. TODO(smus): Airbender experiment 2.
// 6. Hotwording component extension.
// Once http://crbug.com/292856 is fixed, remove this whitelist. // Once http://crbug.com/292856 is fixed, remove this whitelist.
bool IsMediaRequestWhitelistedForExtension( bool IsMediaRequestWhitelistedForExtension(
const extensions::Extension* extension) { const extensions::Extension* extension) {
...@@ -107,7 +108,8 @@ bool IsMediaRequestWhitelistedForExtension( ...@@ -107,7 +108,8 @@ bool IsMediaRequestWhitelistedForExtension(
extension->id() == "bepbmhgboaologfdajaanbcjmnhjmhfn" || extension->id() == "bepbmhgboaologfdajaanbcjmnhjmhfn" ||
extension->id() == "jokbpnebhdcladagohdnfgjcpejggllo" || extension->id() == "jokbpnebhdcladagohdnfgjcpejggllo" ||
extension->id() == "clffjmdilanldobdnedchkdbofoimcgb" || extension->id() == "clffjmdilanldobdnedchkdbofoimcgb" ||
extension->id() == "nnckehldicaciogcbchegobnafnjkcne"; extension->id() == "nnckehldicaciogcbchegobnafnjkcne" ||
extension->id() == "nbpagnldghgfoolbancepceaanlmhfmd";
} }
bool IsBuiltInExtension(const GURL& origin) { bool IsBuiltInExtension(const GURL& origin) {
......
...@@ -129,7 +129,9 @@ ...@@ -129,7 +129,9 @@
"3F50C3A83839D9C76334BCE81CDEC06174F266AF", "3F50C3A83839D9C76334BCE81CDEC06174F266AF",
"09FDCB5851B8F3378DB630D06E316076E89C95A6", "09FDCB5851B8F3378DB630D06E316076E89C95A6",
"39BE69F11F68E4EED080DA3DC2394F7885B7AFF9", "39BE69F11F68E4EED080DA3DC2394F7885B7AFF9",
"FF78670081967CE21DB86A04AD94A0498F01E20A" "FF78670081967CE21DB86A04AD94A0498F01E20A",
// Hotword component extension
"62CCAAD339E6451BBF97C4BBDF758E934A05AD0B"
] ]
} }
], ],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment