Fix bug when CryptAuth requests are made with an empty protobuf serialization.
commitf946f7f9d1e91104ee6df3b5060ff9bccc2b3117
authortengs <tengs@chromium.org>
Thu, 6 Aug 2015 00:22:24 +0000 (5 17:22 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 6 Aug 2015 00:22:58 +0000 (6 00:22 +0000)
tree65029a941790122a815e4355f86b219f452bce52
parent4b646b20bd31db5683be4d129e246d03096c28e9
Fix bug when CryptAuth requests are made with an empty protobuf serialization.

Do fix this edge case, we refactor OAuth2ApiCallFlow to allow overriding the
RequestType of the API call.

BUG=516849
TEST=unit tests

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

Cr-Commit-Position: refs/heads/master@{#342022}
components/proximity_auth/cryptauth/cryptauth_api_call_flow.cc
components/proximity_auth/cryptauth/cryptauth_api_call_flow.h
components/proximity_auth/cryptauth/cryptauth_api_call_flow_unittest.cc
google_apis/gaia/oauth2_api_call_flow.cc
google_apis/gaia/oauth2_api_call_flow.h