Chromium Code Reviews| Index: components/autofill/core/browser/autofill_profile.cc |
| diff --git a/components/autofill/core/browser/autofill_profile.cc b/components/autofill/core/browser/autofill_profile.cc |
| index 86d3e4c05833df0df077c40ea7b75a70aecb292e..a1c72840af573dc34ba911abb568b1f82c769de9 100644 |
| --- a/components/autofill/core/browser/autofill_profile.cc |
| +++ b/components/autofill/core/browser/autofill_profile.cc |
| @@ -520,7 +520,8 @@ bool AutofillProfile::OverwriteWith(const AutofillProfile& profile, |
| DCHECK(!IsVerified() || profile.IsVerified()); |
| set_origin(profile.origin()); |
| set_language_code(profile.language_code()); |
| - set_use_count(profile.use_count() + use_count()); |
| + if (profile.use_count() > use_count()) |
|
Mathieu
2016/04/19 14:29:35
as discussed, let's keep the + here.
sebsg
2016/04/20 20:25:46
Done.
|
| + set_use_count(profile.use_count()); |
| if (profile.use_date() > use_date()) |
| set_use_date(profile.use_date()); |