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

Unified Diff: chrome/browser/sync/signin_manager.cc

Issue 8511064: GAIA Profile info prototype (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test Created 9 years, 1 month 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
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/ui/views/avatar_menu_bubble_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/signin_manager.cc
diff --git a/chrome/browser/sync/signin_manager.cc b/chrome/browser/sync/signin_manager.cc
index ca5be0ce97812aaf65d46fc7e85921a3fce185d5..5ac18df7a40a047f4db69c920c47a503e65659ff 100644
--- a/chrome/browser/sync/signin_manager.cc
+++ b/chrome/browser/sync/signin_manager.cc
@@ -38,6 +38,7 @@ void SigninManager::RegisterUserPrefs(PrefService* user_prefs) {
}
void SigninManager::Initialize(Profile* profile) {
+ fprintf(stderr, "%s\n", __func__);
profile_ = profile;
SetUsername(profile_->GetPrefs()->GetString(prefs::kGoogleServicesUsername));
profile_->GetTokenService()->Initialize(
@@ -102,6 +103,7 @@ void SigninManager::PrepareForOAuthSignin() {
// Users must always sign out before they sign in again.
void SigninManager::StartOAuthSignIn(const std::string& oauth1_request_token) {
+ fprintf(stderr, "%s\n", __func__);
DCHECK(browser_sync::IsUsingOAuth());
PrepareForOAuthSignin();
oauth1_request_token_.assign(oauth1_request_token);
@@ -118,6 +120,7 @@ void SigninManager::StartSignIn(const std::string& username,
const std::string& password,
const std::string& login_token,
const std::string& login_captcha) {
+ fprintf(stderr, "%s\n", __func__);
DCHECK(!browser_sync::IsUsingOAuth());
PrepareForSignin();
username_.assign(username);
@@ -180,6 +183,7 @@ void SigninManager::SignOut() {
}
void SigninManager::OnClientLoginSuccess(const ClientLoginResult& result) {
+ fprintf(stderr, "%s\n", __func__);
DCHECK(!browser_sync::IsUsingOAuth());
last_result_ = result;
// Make a request for the canonical email address.
@@ -189,6 +193,7 @@ void SigninManager::OnClientLoginSuccess(const ClientLoginResult& result) {
// NOTE: GetUserInfo is a ClientLogin request similar to OAuth's userinfo
void SigninManager::OnGetUserInfoSuccess(const std::string& key,
const std::string& value) {
+ fprintf(stderr, "%s\n", __func__);
DCHECK(!browser_sync::IsUsingOAuth());
DCHECK(key == kGetInfoEmailKey);
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/ui/views/avatar_menu_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698