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

Unified Diff: google_apis/gaia/gaia_oauth_client.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 2 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
« no previous file with comments | « content/test/net/url_request_slow_download_job.cc ('k') | gpu/command_buffer/service/context_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gaia/gaia_oauth_client.cc
diff --git a/google_apis/gaia/gaia_oauth_client.cc b/google_apis/gaia/gaia_oauth_client.cc
index 46fbac166db1208a90814aa87fde72baa6bb4f00..31d00d4e33bd98332e02839c7788cb2e1496ec5c 100644
--- a/google_apis/gaia/gaia_oauth_client.cc
+++ b/google_apis/gaia/gaia_oauth_client.cc
@@ -125,7 +125,7 @@ void GaiaOAuthClient::Core::GetUserInfo(const std::string& oauth_access_token,
request_.reset(net::URLFetcher::Create(
0, GURL(GaiaUrls::GetInstance()->oauth_user_info_url()),
net::URLFetcher::GET, this));
- request_->SetRequestContext(request_context_getter_);
+ request_->SetRequestContext(request_context_getter_.get());
request_->AddExtraRequestHeader(
"Authorization: OAuth " + oauth_access_token);
request_->SetMaxRetries(max_retries);
@@ -141,7 +141,7 @@ void GaiaOAuthClient::Core::MakeGaiaRequest(
num_retries_ = 0;
request_.reset(net::URLFetcher::Create(
0, gaia_url_, net::URLFetcher::POST, this));
- request_->SetRequestContext(request_context_getter_);
+ request_->SetRequestContext(request_context_getter_.get());
request_->SetUploadData("application/x-www-form-urlencoded", post_body);
request_->SetMaxRetries(max_retries);
request_->Start();
@@ -161,7 +161,7 @@ void GaiaOAuthClient::Core::OnURLFetchComplete(
num_retries_++;
// We must set our request_context_getter_ again because
// URLFetcher::Core::RetryOrCompleteUrlFetch resets it to NULL...
- request_->SetRequestContext(request_context_getter_);
+ request_->SetRequestContext(request_context_getter_.get());
request_->Start();
}
}
« no previous file with comments | « content/test/net/url_request_slow_download_job.cc ('k') | gpu/command_buffer/service/context_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698