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

Unified Diff: google_apis/gaia/oauth2_api_call_flow.h

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: Remove unneeded Pass() calls Created 5 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.h
diff --git a/google_apis/gaia/oauth2_api_call_flow.h b/google_apis/gaia/oauth2_api_call_flow.h
index fd4c660732baedb2d627df8e74563bf0176c117a..5aa3399e1c17288d868a430253d88b3286de85b3 100644
--- a/google_apis/gaia/oauth2_api_call_flow.h
+++ b/google_apis/gaia/oauth2_api_call_flow.h
@@ -64,9 +64,9 @@ class OAuth2ApiCallFlow : public net::URLFetcherDelegate {
// Template method CreateApiCallUrl is used to get the URL.
// Template method CreateApiCallBody is used to get the body.
// The URLFether's method will be GET if body is empty, POST otherwise.
- // Caller owns the returned instance.
- net::URLFetcher* CreateURLFetcher(net::URLRequestContextGetter* context,
- const std::string& access_token);
+ scoped_ptr<net::URLFetcher> CreateURLFetcher(
+ net::URLRequestContextGetter* context,
+ const std::string& access_token);
// Helper methods to implement the state machine for the flow.
void BeginApiCall();
« no previous file with comments | « google_apis/gaia/oauth2_access_token_fetcher_impl_unittest.cc ('k') | google_apis/gaia/oauth2_api_call_flow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698