Chromium Code Reviews| Index: third_party/WebKit/Source/modules/webaudio/AudioContext.cpp |
| diff --git a/third_party/WebKit/Source/modules/webaudio/AudioContext.cpp b/third_party/WebKit/Source/modules/webaudio/AudioContext.cpp |
| index e45fbf22d878e21d2aca2e1e491cee4fa2fc6e2d..c0975b240ad67da4122fa7fe1fd393ae59426ffa 100644 |
| --- a/third_party/WebKit/Source/modules/webaudio/AudioContext.cpp |
| +++ b/third_party/WebKit/Source/modules/webaudio/AudioContext.cpp |
| @@ -116,6 +116,8 @@ ScriptPromise AudioContext::resumeContext(ScriptState* scriptState) |
| { |
| ASSERT(isMainThread()); |
| + recordUserGesture(); |
|
Raymond Toy
2016/06/03 17:57:52
I think you probably want to do this around line 1
mlamouri (slow - plz ping)
2016/06/05 14:44:57
Done.
|
| + |
| if (isContextClosed()) { |
| return ScriptPromise::rejectWithDOMException( |
| scriptState, |
| @@ -198,4 +200,3 @@ void AudioContext::stopRendering() |
| } |
| } // namespace blink |
| - |