OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/policy/cloud/user_info_fetcher.h" | 5 #include "components/policy/core/common/cloud/user_info_fetcher.h" |
6 | 6 |
7 #include "base/json/json_reader.h" | 7 #include "base/json/json_reader.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "google_apis/gaia/gaia_urls.h" | 11 #include "google_apis/gaia/gaia_urls.h" |
12 #include "google_apis/gaia/google_service_auth_error.h" | 12 #include "google_apis/gaia/google_service_auth_error.h" |
13 #include "net/base/load_flags.h" | 13 #include "net/base/load_flags.h" |
14 #include "net/http/http_status_code.h" | 14 #include "net/http/http_status_code.h" |
15 #include "net/url_request/url_fetcher.h" | 15 #include "net/url_request/url_fetcher.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 if (parsed_value.get() && parsed_value->GetAsDictionary(&dict)) { | 80 if (parsed_value.get() && parsed_value->GetAsDictionary(&dict)) { |
81 delegate_->OnGetUserInfoSuccess(dict); | 81 delegate_->OnGetUserInfoSuccess(dict); |
82 } else { | 82 } else { |
83 NOTREACHED() << "Could not parse userinfo response from server"; | 83 NOTREACHED() << "Could not parse userinfo response from server"; |
84 delegate_->OnGetUserInfoFailure(GoogleServiceAuthError( | 84 delegate_->OnGetUserInfoFailure(GoogleServiceAuthError( |
85 GoogleServiceAuthError::CONNECTION_FAILED)); | 85 GoogleServiceAuthError::CONNECTION_FAILED)); |
86 } | 86 } |
87 } | 87 } |
88 | 88 |
89 }; // namespace policy | 89 }; // namespace policy |
OLD | NEW |