Profile Reset: Added automated feedback of user settings.
BUG=235037
[email protected], [email protected]
Review URL: https://codereview.chromium.org/21248002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214373 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/profile_resetter/resettable_settings_snapshot.h b/chrome/browser/profile_resetter/resettable_settings_snapshot.h
index fc8282423..93aaf485 100644
--- a/chrome/browser/profile_resetter/resettable_settings_snapshot.h
+++ b/chrome/browser/profile_resetter/resettable_settings_snapshot.h
@@ -19,6 +19,9 @@
HOMEPAGE = 1 << 2,
HOMEPAGE_IS_NTP = 1 << 3,
DSE_URL = 1 << 4,
+
+ ALL_FIELDS = STARTUP_URLS | STARTUP_TYPE | HOMEPAGE |
+ HOMEPAGE_IS_NTP | DSE_URL,
};
explicit ResettableSettingsSnapshot(Profile* profile);
@@ -58,4 +61,13 @@
DISALLOW_COPY_AND_ASSIGN(ResettableSettingsSnapshot);
};
+// Serializes specified |snapshot| members to JSON format. |field_mask| is a bit
+// mask of ResettableSettingsSnapshot::Field values.
+std::string SerializeSettingsReport(const ResettableSettingsSnapshot& snapshot,
+ int field_mask);
+
+// Sends |report| as a feedback. |report| is supposed to be result of
+// SerializeSettingsReport().
+void SendSettingsFeedback(const std::string& report, Profile* profile);
+
#endif // CHROME_BROWSER_PROFILE_RESETTER_RESETTABLE_SETTINGS_SNAPSHOT_H_