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

Unified Diff: chrome/browser/chromeos/login/auth/online_attempt_host.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_host.cc
diff --git a/chrome/browser/chromeos/login/auth/online_attempt_host.cc b/chrome/browser/chromeos/login/auth/online_attempt_host.cc
index 802e2e3682c72bf73353675875b8c01bc2ff068f..6a88b76c5de5927a27c4b7b003275362afb004c5 100644
--- a/chrome/browser/chromeos/login/auth/online_attempt_host.cc
+++ b/chrome/browser/chromeos/login/auth/online_attempt_host.cc
@@ -10,7 +10,7 @@
#include "chrome/browser/chromeos/login/auth/online_attempt.h"
#include "chrome/browser/chromeos/login/auth/user_context.h"
#include "chrome/browser/chromeos/login/users/user.h"
-#include "chrome/browser/profiles/profile.h"
+#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
namespace chromeos {
@@ -22,7 +22,7 @@ OnlineAttemptHost::~OnlineAttemptHost() {
Reset();
}
-void OnlineAttemptHost::Check(Profile* profile,
+void OnlineAttemptHost::Check(content::BrowserContext* auth_context,
const UserContext& user_context) {
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
std::string attempt_hash = base::SHA1HashString(
@@ -38,7 +38,7 @@ void OnlineAttemptHost::Check(Profile* profile,
false, // online_complete
false)); // user_is_new
online_attempt_.reset(new OnlineAttempt(state_.get(), this));
- online_attempt_->Initiate(profile);
+ online_attempt_->Initiate(auth_context);
}
}
« no previous file with comments | « chrome/browser/chromeos/login/auth/online_attempt_host.h ('k') | chrome/browser/chromeos/login/lock/screen_locker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698