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

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

Issue 738613003: Enables speech APIs to input method extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/browser/resources/chromeos/input_method/google_input_tools_manifest.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 cc776b30b5a8543c61c6a8e61ab190ae201e47a7..f187793837661b0210025539654b8fb8e688ffb6 100644
--- a/chrome/browser/media/media_capture_devices_dispatcher.cc
+++ b/chrome/browser/media/media_capture_devices_dispatcher.cc
@@ -99,6 +99,8 @@ const content::MediaStreamDevice* FindDeviceWithId(
// 4. TODO(smus): Airbender experiment 1.
// 5. TODO(smus): Airbender experiment 2.
// 6. Hotwording component extension.
+// 7. XKB input method component extension.
+// 8. M17n/T13n/CJK input method component extension.
// Once http://crbug.com/292856 is fixed, remove this whitelist.
bool IsMediaRequestWhitelistedForExtension(
const extensions::Extension* extension) {
@@ -107,7 +109,9 @@ bool IsMediaRequestWhitelistedForExtension(
extension->id() == "jokbpnebhdcladagohdnfgjcpejggllo" ||
extension->id() == "clffjmdilanldobdnedchkdbofoimcgb" ||
extension->id() == "nnckehldicaciogcbchegobnafnjkcne" ||
- extension->id() == "nbpagnldghgfoolbancepceaanlmhfmd";
+ extension->id() == "nbpagnldghgfoolbancepceaanlmhfmd" ||
+ extension->id() == "jkghodnilhceideoidjikpgommlajknk" ||
+ extension->id() == "gjaehgfemfahhmlgpdfknkhdnemmolop";
}
bool IsBuiltInExtension(const GURL& origin) {
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/input_method/google_input_tools_manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698