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

Unified Diff: chrome/browser/chromeos/login/oauth1_token_fetcher.cc

Issue 11649055: OAuth2 sign-in flow for ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: wired policy with OAuth2 path Created 7 years, 11 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/browser/chromeos/login/oauth1_token_fetcher.cc
diff --git a/chrome/browser/chromeos/login/oauth1_token_fetcher.cc b/chrome/browser/chromeos/login/oauth1_token_fetcher.cc
index c0512a7778d23a66b052fec8f4891798211b2026..cea49d6f5b6bcf4f42c99925707e943058c1650c 100644
--- a/chrome/browser/chromeos/login/oauth1_token_fetcher.cc
+++ b/chrome/browser/chromeos/login/oauth1_token_fetcher.cc
@@ -29,13 +29,11 @@ const char kServiceScopeChromeOS[] =
namespace chromeos {
-OAuth1TokenFetcher::OAuth1TokenFetcher(OAuth1TokenFetcher::Delegate* delegate,
- Profile* auth_profile)
+OAuth1TokenFetcher::OAuth1TokenFetcher(
+ OAuth1TokenFetcher::Delegate* delegate,
+ net::URLRequestContextGetter* auth_context_getter)
: delegate_(delegate),
- auth_profile_(auth_profile),
- oauth_fetcher_(this,
- auth_profile_->GetRequestContext(),
- kServiceScopeChromeOS),
+ oauth_fetcher_(this, auth_context_getter, kServiceScopeChromeOS),
retry_count_(0) {
DCHECK(delegate);
}

Powered by Google App Engine
This is Rietveld 408576698