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

Unified Diff: components/autofill/core/browser/autofill_profile.cc

Issue 1891903002: [Autofill] Set basic information when adding a new profiles and credit cards. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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
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());

Powered by Google App Engine
This is Rietveld 408576698