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

Unified Diff: google_apis/gaia/oauth2_api_call_flow.cc

Issue 1873663002: Convert //google_apis from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
Index: google_apis/gaia/oauth2_api_call_flow.cc
diff --git a/google_apis/gaia/oauth2_api_call_flow.cc b/google_apis/gaia/oauth2_api_call_flow.cc
index 8b160323b83b0dab33ea8b68f9021179817c391c..f178299719a51922eea4c0919d4f234d93fb83b6 100644
--- a/google_apis/gaia/oauth2_api_call_flow.cc
+++ b/google_apis/gaia/oauth2_api_call_flow.cc
@@ -74,12 +74,12 @@ void OAuth2ApiCallFlow::OnURLFetchComplete(const net::URLFetcher* source) {
EndApiCall(source);
}
-scoped_ptr<URLFetcher> OAuth2ApiCallFlow::CreateURLFetcher(
+std::unique_ptr<URLFetcher> OAuth2ApiCallFlow::CreateURLFetcher(
net::URLRequestContextGetter* context,
const std::string& access_token) {
std::string body = CreateApiCallBody();
net::URLFetcher::RequestType request_type = GetRequestTypeForBody(body);
- scoped_ptr<URLFetcher> result =
+ std::unique_ptr<URLFetcher> result =
net::URLFetcher::Create(0, CreateApiCallUrl(), request_type, this);
result->SetRequestContext(context);

Powered by Google App Engine
This is Rietveld 408576698