| Index: components/password_manager/sync/browser/password_sync_util.cc
|
| diff --git a/components/password_manager/sync/browser/password_sync_util.cc b/components/password_manager/sync/browser/password_sync_util.cc
|
| index 19292c5811c303394ff686b6cca8fc7358a5737d..9eadfdf4f1cb38964bf135af39c59e9847fc5e4f 100644
|
| --- a/components/password_manager/sync/browser/password_sync_util.cc
|
| +++ b/components/password_manager/sync/browser/password_sync_util.cc
|
| @@ -39,6 +39,12 @@ bool IsSyncAccountCredential(const autofill::PasswordForm& form,
|
| return false;
|
| }
|
|
|
| + // The empty username can mean that Chrome did not detect it correctly. For
|
| + // reasons described in http://crbug.com/636292#c1, the username is suspected
|
| + // to be the sync username unless proven otherwise.
|
| + if (form.username_value.empty())
|
| + return true;
|
| +
|
| return gaia::AreEmailsSame(
|
| base::UTF16ToUTF8(form.username_value),
|
| GetSyncUsernameIfSyncingPasswords(sync_service, signin_manager));
|
|
|