| OLD | NEW | 
|    1 // Copyright 2013 The Chromium Authors. All rights reserved. |    1 // Copyright 2013 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/signin/core/browser/signin_header_helper.h" |    5 #include "components/signin/core/browser/signin_header_helper.h" | 
|    6  |    6  | 
 |    7 #include <stddef.h> | 
 |    8  | 
 |    9 #include "base/macros.h" | 
|    7 #include "base/strings/string_number_conversions.h" |   10 #include "base/strings/string_number_conversions.h" | 
|    8 #include "base/strings/string_split.h" |   11 #include "base/strings/string_split.h" | 
|    9 #include "base/strings/stringprintf.h" |   12 #include "base/strings/stringprintf.h" | 
 |   13 #include "build/build_config.h" | 
|   10 #include "components/content_settings/core/browser/cookie_settings.h" |   14 #include "components/content_settings/core/browser/cookie_settings.h" | 
|   11 #include "components/google/core/browser/google_util.h" |   15 #include "components/google/core/browser/google_util.h" | 
|   12 #include "components/signin/core/common/profile_management_switches.h" |   16 #include "components/signin/core/common/profile_management_switches.h" | 
|   13 #include "google_apis/gaia/gaia_auth_util.h" |   17 #include "google_apis/gaia/gaia_auth_util.h" | 
|   14 #include "google_apis/gaia/gaia_urls.h" |   18 #include "google_apis/gaia/gaia_urls.h" | 
|   15 #include "net/base/escape.h" |   19 #include "net/base/escape.h" | 
|   16 #include "net/http/http_response_headers.h" |   20 #include "net/http/http_response_headers.h" | 
|   17 #include "net/url_request/url_request.h" |   21 #include "net/url_request/url_request.h" | 
|   18 #include "url/gurl.h" |   22 #include "url/gurl.h" | 
|   19  |   23  | 
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  210   if (!request->response_headers()->GetNormalizedHeader( |  214   if (!request->response_headers()->GetNormalizedHeader( | 
|  211           kChromeManageAccountsHeader, &header_value)) { |  215           kChromeManageAccountsHeader, &header_value)) { | 
|  212     return empty_params; |  216     return empty_params; | 
|  213   } |  217   } | 
|  214  |  218  | 
|  215   DCHECK(switches::IsEnableAccountConsistency() && !is_off_the_record); |  219   DCHECK(switches::IsEnableAccountConsistency() && !is_off_the_record); | 
|  216   return BuildManageAccountsParams(header_value); |  220   return BuildManageAccountsParams(header_value); | 
|  217 } |  221 } | 
|  218  |  222  | 
|  219 }  // namespace signin |  223 }  // namespace signin | 
| OLD | NEW |