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

Unified Diff: Source/modules/webaudio/WaveShaperNode.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/WaveShaperNode.cpp
diff --git a/Source/modules/webaudio/WaveShaperNode.cpp b/Source/modules/webaudio/WaveShaperNode.cpp
index 3e84aaa304b5f78b4ebf588164b332468e5fc943..60bb145e1bc9bc3ba5567386af75c52314655935 100644
--- a/Source/modules/webaudio/WaveShaperNode.cpp
+++ b/Source/modules/webaudio/WaveShaperNode.cpp
@@ -74,10 +74,7 @@ void WaveShaperNode::setOversample(const String& type, ExceptionState& exception
} else {
exceptionState.throwDOMException(
InvalidStateError,
- ExceptionMessages::failedToSet(
- "oversample",
- "WaveShaperNode",
- "invalid oversample '" + type + "': must be 'none', '2x', or '4x'."));
+ "The value provided ('" + type + "') is not one of 'none', '2x', or '4x'.");
}
}

Powered by Google App Engine
This is Rietveld 408576698