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

Unified Diff: ui/keyboard/resources/elements/kb-keyboard.js

Issue 259183003: Disable sounds in the virtual keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « ui/keyboard/resources/constants.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/resources/elements/kb-keyboard.js
diff --git a/ui/keyboard/resources/elements/kb-keyboard.js b/ui/keyboard/resources/elements/kb-keyboard.js
index 9e0708ad2c6fd434a4432d0db0be6d4fae8b4c9a..654bf38000984591cac0ee8ca2ff081d7d1d3dac 100644
--- a/ui/keyboard/resources/elements/kb-keyboard.js
+++ b/ui/keyboard/resources/elements/kb-keyboard.js
@@ -770,7 +770,7 @@ Polymer('kb-keyboard', {
* @param {Sound} sound The id of the audio tag.
*/
playSound: function(sound) {
- if (!sound || sound == Sound.NONE)
+ if (!SOUND_ENABLED || !sound || sound == Sound.NONE)
return;
var pool = this.sounds[sound];
if (!pool) {
« no previous file with comments | « ui/keyboard/resources/constants.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698