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

Unified Diff: chrome/browser/chromeos/login/auth/online_attempt.cc

Issue 292663018: [cros login] Cleanup: replace some of Profile usages with BrowserContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing include, fix ProxySettingsDialog ctor Created 6 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/browser/chromeos/login/auth/online_attempt.cc
diff --git a/chrome/browser/chromeos/login/auth/online_attempt.cc b/chrome/browser/chromeos/login/auth/online_attempt.cc
index c4102765d1b69b3358ab357489102d3375778378..a18543da01bb89bb936e9c7f8067841334473364 100644
--- a/chrome/browser/chromeos/login/auth/online_attempt.cc
+++ b/chrome/browser/chromeos/login/auth/online_attempt.cc
@@ -13,8 +13,7 @@
#include "chrome/browser/chromeos/login/auth/auth_attempt_state.h"
#include "chrome/browser/chromeos/login/auth/auth_attempt_state_resolver.h"
#include "chrome/browser/chromeos/login/users/user.h"
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/profiles/profile_manager.h"
+#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
#include "google_apis/gaia/gaia_auth_consumer.h"
#include "google_apis/gaia/gaia_auth_fetcher.h"
@@ -45,11 +44,11 @@ OnlineAttempt::~OnlineAttempt() {
client_fetcher_->CancelRequest();
}
-void OnlineAttempt::Initiate(Profile* auth_profile) {
+void OnlineAttempt::Initiate(content::BrowserContext* auth_context) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
client_fetcher_.reset(
new GaiaAuthFetcher(this, GaiaConstants::kChromeOSSource,
- auth_profile->GetRequestContext()));
+ auth_context->GetRequestContext()));
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
base::Bind(&OnlineAttempt::TryClientLogin, weak_factory_.GetWeakPtr()));
« no previous file with comments | « chrome/browser/chromeos/login/auth/online_attempt.h ('k') | chrome/browser/chromeos/login/auth/online_attempt_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698