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

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

Issue 1021383002: cros: Transfer auth cookies for SAML webview sign-in. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update comment Created 5 years, 9 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/profile_auth_data.cc
diff --git a/chrome/browser/chromeos/login/profile_auth_data.cc b/chrome/browser/chromeos/login/profile_auth_data.cc
index d75c9d0aa6b9bb503b1db0088b6daae912a2e9eb..7d0e9ef1fbf25618f2a97510ea452d5dd3c3b4a5 100644
--- a/chrome/browser/chromeos/login/profile_auth_data.cc
+++ b/chrome/browser/chromeos/login/profile_auth_data.cc
@@ -40,8 +40,8 @@ const char kSAMLEndCookie[] = "google-accounts-saml-end";
class ProfileAuthDataTransferer {
public:
ProfileAuthDataTransferer(
- content::BrowserContext* from_context,
- content::BrowserContext* to_context,
+ net::URLRequestContextGetter* from_context,
+ net::URLRequestContextGetter* to_context,
bool transfer_auth_cookies_and_channel_ids_on_first_login,
bool transfer_saml_auth_cookies_on_subsequent_login,
const base::Closure& completion_callback);
@@ -119,13 +119,13 @@ class ProfileAuthDataTransferer {
};
ProfileAuthDataTransferer::ProfileAuthDataTransferer(
- content::BrowserContext* from_context,
- content::BrowserContext* to_context,
+ net::URLRequestContextGetter* from_context,
+ net::URLRequestContextGetter* to_context,
bool transfer_auth_cookies_and_channel_ids_on_first_login,
bool transfer_saml_auth_cookies_on_subsequent_login,
const base::Closure& completion_callback)
- : from_context_(from_context->GetRequestContext()),
- to_context_(to_context->GetRequestContext()),
+ : from_context_(from_context),
+ to_context_(to_context),
transfer_auth_cookies_and_channel_ids_on_first_login_(
transfer_auth_cookies_and_channel_ids_on_first_login),
transfer_saml_auth_cookies_on_subsequent_login_(
@@ -314,8 +314,8 @@ void ProfileAuthDataTransferer::Finish() {
} // namespace
void ProfileAuthData::Transfer(
- content::BrowserContext* from_context,
- content::BrowserContext* to_context,
+ net::URLRequestContextGetter* from_context,
+ net::URLRequestContextGetter* to_context,
bool transfer_auth_cookies_and_channel_ids_on_first_login,
bool transfer_saml_auth_cookies_on_subsequent_login,
const base::Closure& completion_callback) {
« no previous file with comments | « chrome/browser/chromeos/login/profile_auth_data.h ('k') | chrome/browser/chromeos/login/profile_auth_data_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698