Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: components/cryptauth/cryptauth_api_call_flow.cc

Issue 2561203002: Migrate weave-related classes from proximity_auth/ble to cryptauth/ble. (Closed)
Patch Set: Rebase. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698