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

Side by Side Diff: components/policy/core/common/cloud/user_info_fetcher.cc

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698