• sergeyu's avatar
    Fix remoting NM hosts to verify that incoming messages are dictionaries. · c827ad1c
    sergeyu authored
    After crrev.com/295851 the PipeMessagingChannel verifies that incoming
    messages are dictionaries and then passes them as base::Value to
    OnMessage() and then OnMessage() implementation static_cast<> them to
    base::DictionaryValue. This is fragile, and also it shouldn't be
    PipeMessagingChannel's responsibility to verify format of the messages
    it reads. Moved the check to OnMessage() implementations.
    
    Review URL: https://codereview.chromium.org/615543004
    
    Cr-Commit-Position: refs/heads/master@{#297274}
    c827ad1c
it2me_native_messaging_host.cc 9.79 KB