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

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

Issue 2584973002: [Sync] Fix account info string on PassphraseDialogFragment on android. (Closed)
Patch Set: Created 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/profile_sync_service_android.cc
diff --git a/chrome/browser/sync/profile_sync_service_android.cc b/chrome/browser/sync/profile_sync_service_android.cc
index 66e1d79644257a903c5aac9a4278a1a98b021b7d..b8843b0f49cf4886347da1c004cd3b621ae4b05b 100644
--- a/chrome/browser/sync/profile_sync_service_android.cc
+++ b/chrome/browser/sync/profile_sync_service_android.cc
@@ -441,9 +441,13 @@ ProfileSyncServiceAndroid::GetCurrentSignedInAccountText(
JNIEnv* env,
const JavaParamRef<jobject>&) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
- // TODO(maxbogue): Remove this function. This String can be used in Java.
- return base::android::ConvertUTF16ToJavaString(env,
- l10n_util::GetStringUTF16(IDS_SYNC_ACCOUNT_SYNCING));
+ const std::string& sync_username =
+ SigninManagerFactory::GetForProfile(profile_)
+ ->GetAuthenticatedAccountInfo()
+ .email;
+ return base::android::ConvertUTF16ToJavaString(
+ env, l10n_util::GetStringFUTF16(IDS_SYNC_ACCOUNT_INFO,
+ base::ASCIIToUTF16(sync_username)));
}
ScopedJavaLocalRef<jstring>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698