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

Unified Diff: components/autofill/core/browser/autofill_data_model.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: Fixed test that was added in rebase and removed unnecessary test. 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
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/autofill_data_model.cc
diff --git a/components/autofill/core/browser/autofill_data_model.cc b/components/autofill/core/browser/autofill_data_model.cc
index 55bd0af7890fcc03f077d4cc315b578d2a465e70..7d1f756a66db01263a6dc4b64f93c088df2f13e1 100644
--- a/components/autofill/core/browser/autofill_data_model.cc
+++ b/components/autofill/core/browser/autofill_data_model.cc
@@ -13,8 +13,11 @@ namespace autofill {
AutofillDataModel::AutofillDataModel(const std::string& guid,
const std::string& origin)
- : guid_(guid), origin_(origin), use_count_(0) {
-}
+ : guid_(guid),
+ origin_(origin),
+ use_count_(1),
+ use_date_(base::Time::Now()),
+ modification_date_(base::Time::Now()) {}
AutofillDataModel::~AutofillDataModel() {}
bool AutofillDataModel::IsVerified() const {
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698