[inspector] revert fallThrough support for async methods

We can't use "this" after calling agent code since agent code can destroy dispatcher.

BUG=chromium:668358
TBR=dgozman@chromium.org

Review-Url: https://codereview.chromium.org/2526183002
Cr-Commit-Position: refs/heads/master@{#41247}
This commit is contained in:
kozyatinskiy 2016-11-24 00:09:10 -08:00 committed by Commit bot
parent f277da2a00
commit 4f798f9065
2 changed files with 2 additions and 1 deletions

View File

@ -14,3 +14,4 @@ description.
Local modifications:
- This only includes the lib/ and templates/ directories, scripts, build
and the LICENSE files.
- FallbackThrough support is removed for async methods.

View File

@ -367,7 +367,7 @@ DispatchResponse::Status DispatcherImpl::{{command.name}}(int callId, std::uniqu
{%- endfor -%}
{%- if command.parameters -%}, {% endif -%}
std::move(callback));
return lastCallbackFallThrough() ? DispatchResponse::kFallThrough : DispatchResponse::kAsync;
return DispatchResponse::kAsync;
{% endif %}
}
{% endfor %}