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

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

Issue 150003004: Replace PO2TS::GetPrimaryAccountId() with SMB::GetAuthenticatedAccountId. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 10 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/sync/profile_sync_service.cc
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index 5d30a843b3b5cc6934a960522789981307c0ff20..9a6304a3655a57e3f0fd18d4d74fdcd40a5606f5 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -2229,8 +2229,7 @@ std::string ProfileSyncService::GetAccountIdToUse() {
#endif
}
- // TODO(fgorski): Use GetPrimaryAccountId() when it's available.
- return signin_->GetAuthenticatedUsername();
+ return signin_->GetAuthenticatedAccountId();
}
WeakHandle<syncer::JsEventHandler> ProfileSyncService::GetJsEventHandler() {

Powered by Google App Engine
This is Rietveld 408576698