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

Unified Diff: google_apis/gaia/gaia_auth_fetcher.cc

Issue 2670013002: net: remove GetNormalizedHeaders() function (Closed)
Patch Set: remove verification Created 3 years, 10 months 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 side-by-side diff with in-line comments
Download patch
Index: google_apis/gaia/gaia_auth_fetcher.cc
diff --git a/google_apis/gaia/gaia_auth_fetcher.cc b/google_apis/gaia/gaia_auth_fetcher.cc
index 789fa4744d472219cd7c4553d9efb5bfbd6e3a10..03bd8a4526d4b3ac930b2a06f26528ce67402351 100644
--- a/google_apis/gaia/gaia_auth_fetcher.cc
+++ b/google_apis/gaia/gaia_auth_fetcher.cc
@@ -25,6 +25,7 @@
#include "net/base/load_flags.h"
#include "net/http/http_response_headers.h"
#include "net/http/http_status_code.h"
+#include "net/http/http_util.h"
#include "net/url_request/url_fetcher.h"
#include "net/url_request/url_request_context_getter.h"
#include "net/url_request/url_request_status.h"
@@ -953,7 +954,8 @@ void GaiaAuthFetcher::OnURLFetchComplete(const net::URLFetcher* source) {
#ifndef NDEBUG
std::string headers;
if (source->GetResponseHeaders())
- source->GetResponseHeaders()->GetNormalizedHeaders(&headers);
+ headers = net::HttpUtil::ConvertHeadersBackToHTTPResponse(
+ source->GetResponseHeaders()->raw_headers());
DVLOG(2) << "Response " << url.spec() << ", code = " << response_code << "\n"
<< headers << "\n";
DVLOG(2) << "data: " << data << "\n";

Powered by Google App Engine
This is Rietveld 408576698