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

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

Issue 8665011: sync: remove GetAuthenticatedUsername from ProfileSyncService/SyncBackendHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review2 Created 9 years 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 | « no previous file | chrome/browser/sync/glue/sync_backend_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/login_utils.cc
diff --git a/chrome/browser/chromeos/login/login_utils.cc b/chrome/browser/chromeos/login/login_utils.cc
index 304e73b7036005635d9979cf44e9cad64f593053..d4e5fc058e4c810683d726c1802404546b51dd59 100644
--- a/chrome/browser/chromeos/login/login_utils.cc
+++ b/chrome/browser/chromeos/login/login_utils.cc
@@ -879,6 +879,9 @@ void LoginUtilsImpl::StartSync(
// Set the CrOS user by getting this constructor run with the
// user's email on first retrieval.
+ // TODO(tim): Tidy this up once cros_user is gone (part of bug 93922).
+ user_profile->GetPrefs()->SetString(prefs::kGoogleServicesUsername,
+ username_);
user_profile->GetProfileSyncService(username_)->SetPassphrase(
password_, false);
username_ = "";
« no previous file with comments | « no previous file | chrome/browser/sync/glue/sync_backend_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698