Index: chrome/browser/ui/webui/options/personal_options_handler.cc |
diff --git a/chrome/browser/ui/webui/options/personal_options_handler.cc b/chrome/browser/ui/webui/options/personal_options_handler.cc |
index df33fa3740743f4ffc32ef233ccbd503d1ebe656..8c2990df5cc4564ea29c8b3713459eac8cbc20af 100644 |
--- a/chrome/browser/ui/webui/options/personal_options_handler.cc |
+++ b/chrome/browser/ui/webui/options/personal_options_handler.cc |
@@ -236,8 +236,19 @@ void PersonalOptionsHandler::OnStateChanged() { |
DCHECK(service); |
bool managed = service->IsManaged(); |
bool sync_setup_completed = service->HasSyncSetupCompleted(); |
- bool status_has_error = sync_ui_util::GetStatusLabels(service, |
- &status_label, &link_label) == sync_ui_util::SYNC_ERROR; |
+ bool status_has_error = sync_ui_util::GetStatusLabels( |
+ service, &status_label, &link_label) == sync_ui_util::SYNC_ERROR; |
+ browser_sync::SyncBackendHost::StatusSummary summary = |
+ service->QuerySyncStatusSummary(); |
+ |
+ if (!status_has_error && |
+ summary == browser_sync::SyncBackendHost::Status::SYNCING) { |
+ string16 user_name(service->GetAuthenticatedUsername()); |
+ status_label.assign(l10n_util::GetStringFUTF16( |
+ IDS_SYNC_ACCOUNT_SYNCING_TO_USER, |
+ user_name, |
+ ASCIIToUTF16(chrome::kSyncGoogleDashboardURL))); |
+ } |
string16 start_stop_button_label; |
bool is_start_stop_button_visible = false; |