Skip to content

Commit

Permalink
sync compositor: GenerateReply on sync message only
Browse files Browse the repository at this point in the history
There are no replies for async messages.

Review URL: https://codereview.chromium.org/1541053002

Cr-Commit-Position: refs/heads/master@{#366513}
  • Loading branch information
boliu authored and Commit bot committed Dec 22, 2015
1 parent db1bf2f commit 21c33c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions content/renderer/android/synchronous_compositor_filter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ void SynchronousCompositorFilter::OnMessageReceivedOnCompositorThread(
proxy->OnMessageReceived(message);
return;
}

if (!message.is_sync())
return;
IPC::Message* reply = IPC::SyncMessage::GenerateReply(&message);
reply->set_reply_error();
Send(reply);
Expand Down

0 comments on commit 21c33c9

Please sign in to comment.