Chromium Code Reviews

Unified Diff: components/policy/core/common/cloud/user_info_fetcher.cc

Issue 1117703002: Adjust URLFetcher::Create API so that object is returned as scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix another failure missed by my regex Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: components/policy/core/common/cloud/user_info_fetcher.cc
diff --git a/components/policy/core/common/cloud/user_info_fetcher.cc b/components/policy/core/common/cloud/user_info_fetcher.cc
index b8f9f74df1828dd54975b6e71820b24fbb4146ca..b1f6cd9ca1971596b24512ab4825acc04ab4b3d0 100644
--- a/components/policy/core/common/cloud/user_info_fetcher.cc
+++ b/components/policy/core/common/cloud/user_info_fetcher.cc
@@ -41,9 +41,9 @@ UserInfoFetcher::~UserInfoFetcher() {
void UserInfoFetcher::Start(const std::string& access_token) {
// Create a URLFetcher and start it.
- url_fetcher_.reset(net::URLFetcher::Create(
- 0, GaiaUrls::GetInstance()->oauth_user_info_url(),
- net::URLFetcher::GET, this));
+ url_fetcher_ =
+ net::URLFetcher::Create(0, GaiaUrls::GetInstance()->oauth_user_info_url(),
+ net::URLFetcher::GET, this);
url_fetcher_->SetRequestContext(context_);
url_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES |
net::LOAD_DO_NOT_SAVE_COOKIES);

Powered by Google App Engine