Change SigninManagerBase convenience method.
The new GetAuthenticatedAccountInfo() returns an AccountInfo instead of
just the email.
Old code has been updated to use GetAuthenticatedAccountInfo().email.
BUG=
[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
Review URL: https://codereview.chromium.org/1306843005
Cr-Commit-Position: refs/heads/master@{#346374}
diff --git a/chrome/browser/sync/profile_sync_service_android.cc b/chrome/browser/sync/profile_sync_service_android.cc
index 1be276e4..973d5af 100644
--- a/chrome/browser/sync/profile_sync_service_android.cc
+++ b/chrome/browser/sync/profile_sync_service_android.cc
@@ -309,7 +309,9 @@
JNIEnv* env, jobject) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
const std::string& sync_username =
- SigninManagerFactory::GetForProfile(profile_)->GetAuthenticatedUsername();
+ SigninManagerFactory::GetForProfile(profile_)
+ ->GetAuthenticatedAccountInfo()
+ .email;
return base::android::ConvertUTF16ToJavaString(env,
l10n_util::GetStringFUTF16(
IDS_SYNC_ACCOUNT_SYNCING_TO_USER,