OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/cryptauth/cryptauth_api_call_flow.h" | 5 #include "components/cryptauth/cryptauth_api_call_flow.h" |
6 | 6 |
7 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
8 #include "components/proximity_auth/logging/logging.h" | 8 #include "components/proximity_auth/logging/logging.h" |
9 #include "net/url_request/url_fetcher.h" | 9 #include "net/url_request/url_fetcher.h" |
10 | 10 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 } else { | 73 } else { |
74 error_message = kRequestFailedError; | 74 error_message = kRequestFailedError; |
75 } | 75 } |
76 | 76 |
77 std::string response; | 77 std::string response; |
78 source->GetResponseAsString(&response); | 78 source->GetResponseAsString(&response); |
79 PA_LOG(INFO) << "API call failed:\n" << response; | 79 PA_LOG(INFO) << "API call failed:\n" << response; |
80 error_callback_.Run(error_message); | 80 error_callback_.Run(error_message); |
81 } | 81 } |
82 | 82 |
83 } // proximity_auth | 83 } // namespace cryptauth |
OLD | NEW |