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

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

Issue 2626263005: [Autofill] Sync new wallet metadata fields through Chrome Sync. (Closed)
Patch Set: Addressed comments Created 3 years, 11 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_profile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/autofill_profile.h
diff --git a/components/autofill/core/browser/autofill_profile.h b/components/autofill/core/browser/autofill_profile.h
index 00be04e8592804cb2a39fc9545821c34843c50e2..ae7b521385d87030a22ec239efdafaa456170079 100644
--- a/components/autofill/core/browser/autofill_profile.h
+++ b/components/autofill/core/browser/autofill_profile.h
@@ -178,6 +178,10 @@ class AutofillProfile : public AutofillDataModel {
// use.
void RecordAndLogUse();
+ // Valid only when type() == SERVER_PROFILE.
+ bool has_converted() const { return has_converted_; }
+ void set_has_converted(bool has_converted) { has_converted_ = has_converted; }
+
private:
typedef std::vector<const FormGroup*> FormGroupList;
@@ -221,6 +225,10 @@ class AutofillProfile : public AutofillDataModel {
// ID used for identifying this profile. Only set for SERVER_PROFILEs. This is
// a hash of the contents.
std::string server_id_;
+
+ // Only useful for SERVER_PROFILEs. Whether this server profile has been
+ // converted to a local profile.
+ bool has_converted_;
};
// So we can compare AutofillProfiles with EXPECT_EQ().
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698