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

Unified Diff: third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp

Issue 2760353002: Define default values for options dictionaries for WebAudio (Closed)
Patch Set: Rebase Created 3 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
Index: third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp
index a3ea06ea0a2fbfce1d28190fe5b9839619cc4f43..8d0586656b6242fd9ce9d95b8a45c0f345adf531 100644
--- a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp
@@ -538,9 +538,7 @@ PeriodicWave* BaseAudioContext::createPeriodicWave(
ExceptionState& exception_state) {
DCHECK(IsMainThread());
- bool disable = options.hasDisableNormalization()
- ? options.disableNormalization()
- : false;
+ bool disable = options.disableNormalization();
return PeriodicWave::Create(*this, real, imag, disable, exception_state);
}

Powered by Google App Engine
This is Rietveld 408576698