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

Unified Diff: chrome/browser/renderer_host/audio_renderer_host.cc

Issue 6133001: Turn the volume range check into a bail out return to prevent browser crash.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | media/audio/audio_util.cc » ('j') | media/audio/audio_util.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/audio_renderer_host.cc
===================================================================
--- chrome/browser/renderer_host/audio_renderer_host.cc (revision 70339)
+++ chrome/browser/renderer_host/audio_renderer_host.cc (working copy)
@@ -368,7 +368,8 @@
}
// Make sure the volume is valid.
- CHECK(volume >= 0 && volume <= 1.0);
+ if (volume < 0 || volume > 1.0)
+ return;
entry->controller->SetVolume(volume);
}
« no previous file with comments | « no previous file | media/audio/audio_util.cc » ('j') | media/audio/audio_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698