//device/fido: restore CTAP2 protocol after fallback.

If we wish to make a credential on a CTAP2 device with a PIN set, we
fall back to U2F because such CTAP2 devices will demand the PIN in order
to create a credential.

However, when doing the fallback the protocol was left at U2F, causing
a DCHECK for any future operations on the same |FidoAuthenticator|.

This change restores the protocol after the operation.

Change-Id: If90a82efb844f21dccaec8f0931c63e1c0c68cd0
Reviewed-on: https://chromium-review.googlesource.com/c/1459076
Commit-Queue: Adam Langley <agl@chromium.org>
Reviewed-by: Martin Kreichgauer <martinkr@google.com>
Cr-Commit-Position: refs/heads/master@{#631487}
4 files changed