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

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

Issue 11991002: Merge 176800 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1364/src/
Patch Set: 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
===================================================================
--- chrome/browser/chromeos/login/policy_oauth_fetcher.cc (revision 177312)
+++ chrome/browser/chromeos/login/policy_oauth_fetcher.cc (working copy)
@@ -8,8 +8,6 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/policy/browser_policy_connector.h"
#include "chrome/browser/policy/user_cloud_policy_manager_chromeos.h"
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/profiles/profile_manager.h"
#include "google_apis/gaia/gaia_constants.h"
#include "google_apis/gaia/google_service_auth_error.h"
@@ -20,19 +18,21 @@
"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) {
}
« no previous file with comments | « chrome/browser/chromeos/login/policy_oauth_fetcher.h ('k') | chrome/browser/chromeos/login/profile_auth_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698