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

Unified Diff: chrome/browser/profile_resetter/resettable_settings_snapshot.h

Issue 23450021: Profile Reset dialog: the new section with detailed feedback information (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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: chrome/browser/profile_resetter/resettable_settings_snapshot.h
diff --git a/chrome/browser/profile_resetter/resettable_settings_snapshot.h b/chrome/browser/profile_resetter/resettable_settings_snapshot.h
index 9fcf1cb99fdf2de5609dda5c41e124812162c3fc..7b6a864d409be9782c14a36c61a0caac787a6650 100644
--- a/chrome/browser/profile_resetter/resettable_settings_snapshot.h
+++ b/chrome/browser/profile_resetter/resettable_settings_snapshot.h
@@ -8,6 +8,10 @@
#include "base/basictypes.h"
#include "chrome/browser/prefs/session_startup_pref.h"
+namespace base {
+class ListValue;
+}
+
// ResettableSettingsSnapshot captures some settings values at constructor. It
// can calculate the difference between two snapshots. That is, modified fields.
class ResettableSettingsSnapshot {
@@ -39,6 +43,8 @@ class ResettableSettingsSnapshot {
const std::string& dse_url() const { return dse_url_; }
+ const std::string& dse_host() const { return dse_host_; }
+
const std::vector<std::string>& enabled_extensions() const {
return enabled_extensions_;
}
@@ -64,6 +70,8 @@ class ResettableSettingsSnapshot {
// Default search engine.
std::string dse_url_;
+ // The host is used for human-readable reporting.
+ std::string dse_host_;
// Enabled extension ids. Always sorted.
std::vector<std::string> enabled_extensions_;
@@ -80,4 +88,9 @@ std::string SerializeSettingsReport(const ResettableSettingsSnapshot& snapshot,
// SerializeSettingsReport().
void SendSettingsFeedback(const std::string& report, Profile* profile);
+// Returns list of key/value pairs for all information in the |snapshot| and
+// some additional fields.
+base::ListValue* GetReadableFeedback(
+ const ResettableSettingsSnapshot& snapshot);
+
#endif // CHROME_BROWSER_PROFILE_RESETTER_RESETTABLE_SETTINGS_SNAPSHOT_H_

Powered by Google App Engine
This is Rietveld 408576698