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

Unified Diff: Source/modules/webaudio/DefaultAudioDestinationNode.cpp

Issue 173753002: Drop redundant 'ExceptionMessages::failedToXXX' calls. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline. Created 6 years, 10 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
Index: Source/modules/webaudio/DefaultAudioDestinationNode.cpp
diff --git a/Source/modules/webaudio/DefaultAudioDestinationNode.cpp b/Source/modules/webaudio/DefaultAudioDestinationNode.cpp
index 8e3d474766f8ed5f950ad5644f122f700dbc23c7..50f1df3254d6ea4da734ddf03d2d81521358cc58 100644
--- a/Source/modules/webaudio/DefaultAudioDestinationNode.cpp
+++ b/Source/modules/webaudio/DefaultAudioDestinationNode.cpp
@@ -104,12 +104,7 @@ void DefaultAudioDestinationNode::setChannelCount(unsigned long channelCount, Ex
if (!maxChannelCount() || channelCount > maxChannelCount()) {
exceptionState.throwDOMException(
IndexSizeError,
- ExceptionMessages::failedToSet(
- "channelCount",
- "AudioDestinationNode",
- "channel count (" + String::number(channelCount)
- + ") must be between 1 and "
- + String::number(maxChannelCount()) + "."));
+ ExceptionMessages::indexOutsideRange<unsigned>("channel count", channelCount, 1, ExceptionMessages::InclusiveBound, maxChannelCount(), ExceptionMessages::InclusiveBound));
return;
}

Powered by Google App Engine
This is Rietveld 408576698