• Daniel Bratell's avatar
    Avoid using the Windows type SpeechRecognizerState · 4de2b6ed
    Daniel Bratell authored
    SpeechRecognizerState is an enum in the Windows platform
    API for speech so using that name for a Chrome internal
    type means that you get compilation errors if the platform
    headers and the internal headers end up in the same
    translation unit.
    
    In jumbo builds that could happen (and in general it can also
    happen) so this renames
    SpeechRecognizerState -> SpeechRecognizerStatus
    to avoid that.
    
    An alternative would be to move the enum to a different, more
    limited, scope.
    
    Bug: 746957
    Change-Id: I479470340ea2c582480b2692424a15bc6fb4581a
    Reviewed-on: https://chromium-review.googlesource.com/901247Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
    Reviewed-by: default avatarDavid Tseng <dtseng@chromium.org>
    Commit-Queue: Daniel Bratell <bratell@opera.com>
    Cr-Commit-Position: refs/heads/master@{#534709}
    4de2b6ed
dictation_chromeos.h 1.44 KB