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

Unified Diff: chrome/browser/ui/webui/options/reset_profile_settings_handler.h

Issue 2236663002: Add origin of settings reset request to feedback reports. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move cct hash definition to options::ResetProfileSettingsHandler Created 4 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/ui/webui/options/reset_profile_settings_handler.h
diff --git a/chrome/browser/ui/webui/options/reset_profile_settings_handler.h b/chrome/browser/ui/webui/options/reset_profile_settings_handler.h
index fd1bb0d4c2f12b58621121b68c37cd65a356c252..d35089dd76d9c7ebf2c3e4862562b1d4b68b5581 100644
--- a/chrome/browser/ui/webui/options/reset_profile_settings_handler.h
+++ b/chrome/browser/ui/webui/options/reset_profile_settings_handler.h
@@ -30,6 +30,10 @@ class ResetProfileSettingsHandler
: public OptionsPageUIHandler,
public base::SupportsWeakPtr<ResetProfileSettingsHandler> {
public:
+ // Hash used by the Chrome Cleanup Tool when launching chrome with the reset
+ // profile settings URL.
+ static const char kCctResetSettingsHash[];
+
ResetProfileSettingsHandler();
~ResetProfileSettingsHandler() override;
@@ -46,7 +50,8 @@ class ResetProfileSettingsHandler
void HandleResetProfileSettings(const base::ListValue* value);
// Closes the dialog once all requested settings has been reset.
- void OnResetProfileSettingsDone(bool send_feedback);
+ void OnResetProfileSettingsDone(bool send_feedback,
+ const std::string& reset_request_origin);
// Called when the confirmation box appears.
void OnShowResetProfileDialog(const base::ListValue* value);
@@ -59,7 +64,8 @@ class ResetProfileSettingsHandler
// Resets profile settings to default values. |send_settings| is true if user
// gave his consent to upload broken settings to Google for analysis.
- void ResetProfile(bool send_settings);
+ void ResetProfile(bool send_settings,
+ const std::string& reset_request_origin);
// Sets new values for the feedback area.
void UpdateFeedbackUI();

Powered by Google App Engine
This is Rietveld 408576698