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

Unified Diff: chrome/common/net/gaia/oauth2_api_call_flow.cc

Issue 10392192: Remove content::URLFetcherDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More cleanup Created 8 years, 7 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: chrome/common/net/gaia/oauth2_api_call_flow.cc
diff --git a/chrome/common/net/gaia/oauth2_api_call_flow.cc b/chrome/common/net/gaia/oauth2_api_call_flow.cc
index 189ab8a2b59e9d533adb8c6edf38c05e2c2f1e15..5fe2919214836988d77bda03ee171228c5603129 100644
--- a/chrome/common/net/gaia/oauth2_api_call_flow.cc
+++ b/chrome/common/net/gaia/oauth2_api_call_flow.cc
@@ -10,15 +10,16 @@
#include "base/basictypes.h"
#include "base/stringprintf.h"
#include "chrome/common/net/gaia/gaia_urls.h"
+#include "content/public/common/url_fetcher.h"
#include "net/base/escape.h"
#include "net/base/load_flags.h"
#include "net/http/http_status_code.h"
#include "net/url_request/url_request_context_getter.h"
#include "net/url_request/url_request_status.h"
-using content::URLFetcher;
-using content::URLFetcherDelegate;
using net::ResponseCookies;
+using net::URLFetcher;
+using net::URLFetcherDelegate;
using net::URLRequestContextGetter;
using net::URLRequestStatus;
@@ -147,7 +148,7 @@ void OAuth2ApiCallFlow::OnGetTokenFailure(
URLFetcher* OAuth2ApiCallFlow::CreateURLFetcher() {
std::string body = CreateApiCallBody();
bool empty_body = body.empty();
- URLFetcher* result = URLFetcher::Create(
+ URLFetcher* result = content::URLFetcher::Create(
0,
CreateApiCallUrl(),
empty_body ? URLFetcher::GET : URLFetcher::POST,
« no previous file with comments | « chrome/common/net/gaia/oauth2_api_call_flow.h ('k') | chrome/common/net/gaia/oauth2_api_call_flow_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698