Commit 93cd46d2 authored by binji@chromium.org's avatar binji@chromium.org

[Sync Setup UI] Fix display of "Last Synced as..." in Personal Stuff.

BUG=84907
TEST=go to chrome://settings/personal. Sign in to sync. Display should say "Last synced as..." when sync has completed.


Review URL: http://codereview.chromium.org/7976018

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102413 0039d316-1c4b-4281-b951-d872f2087c98
parent f3e1b503
...@@ -231,14 +231,12 @@ MessageType GetStatusInfo(ProfileSyncService* service, ...@@ -231,14 +231,12 @@ MessageType GetStatusInfo(ProfileSyncService* service,
l10n_util::GetStringUTF16(IDS_SYNC_PASSWORD_SYNC_ATTENTION)); l10n_util::GetStringUTF16(IDS_SYNC_PASSWORD_SYNC_ATTENTION));
} }
return SYNC_PROMO; return SYNC_PROMO;
} else {
// First machine. Don't show promotion, just show everything
// normal.
if (status_label)
status_label->assign(GetSyncedStateStatusLabel(service));
return SYNCED;
} }
} }
// There is no error. Display "Last synced..." message.
if (status_label)
status_label->assign(GetSyncedStateStatusLabel(service));
return SYNCED; return SYNCED;
} else { } else {
// Either show auth error information with a link to re-login, auth in prog, // Either show auth error information with a link to re-login, auth in prog,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment