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

Unified Diff: chrome/browser/chromeos/login/policy_oauth_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/policy_oauth_fetcher.cc
diff --git a/chrome/browser/chromeos/login/policy_oauth_fetcher.cc b/chrome/browser/chromeos/login/policy_oauth_fetcher.cc
index b7b95b9b86f051db9f6fb308b96919f4e1471993..371dd69db05769a625c1d56b7d4c901575226b7f 100644
--- a/chrome/browser/chromeos/login/policy_oauth_fetcher.cc
+++ b/chrome/browser/chromeos/login/policy_oauth_fetcher.cc
@@ -20,19 +20,21 @@ const char kServiceScopeChromeOSDeviceManagement[] =
"https://www.googleapis.com/auth/chromeosdevicemanagement";
} // namespace
-PolicyOAuthFetcher::PolicyOAuthFetcher(Profile* profile,
- const std::string& oauth1_token,
- const std::string& oauth1_secret)
+PolicyOAuthFetcher::PolicyOAuthFetcher(
+ net::URLRequestContextGetter* context_getter,
+ const std::string& oauth1_token,
+ const std::string& oauth1_secret)
: oauth_fetcher_(this,
- profile->GetRequestContext(),
+ context_getter,
kServiceScopeChromeOSDeviceManagement),
oauth1_token_(oauth1_token),
oauth1_secret_(oauth1_secret) {
}
-PolicyOAuthFetcher::PolicyOAuthFetcher(Profile* profile)
+PolicyOAuthFetcher::PolicyOAuthFetcher(
+ net::URLRequestContextGetter* context_getter)
: oauth_fetcher_(this,
- profile->GetRequestContext(),
+ context_getter,
kServiceScopeChromeOSDeviceManagement) {
}

Powered by Google App Engine
This is Rietveld 408576698