Chromium Code Reviews| Index: chrome/browser/ui/webui/settings/reset_settings_handler.h |
| diff --git a/chrome/browser/ui/webui/settings/reset_settings_handler.h b/chrome/browser/ui/webui/settings/reset_settings_handler.h |
| index 6c0ebb68d4ced5190f9f0e88475490f21ea38a96..cf68b1d5a773bc2cffcb3602c3e3da732617ab6b 100644 |
| --- a/chrome/browser/ui/webui/settings/reset_settings_handler.h |
| +++ b/chrome/browser/ui/webui/settings/reset_settings_handler.h |
| @@ -12,6 +12,7 @@ |
| #include "base/macros.h" |
| #include "base/memory/weak_ptr.h" |
| #include "build/build_config.h" |
| +#include "chrome/browser/profile_resetter/profile_reset_report.pb.h" |
| #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" |
| namespace base { |
| @@ -35,6 +36,10 @@ namespace settings { |
| // 2) 'Powerwash' dialog (ChromeOS only) |
| class ResetSettingsHandler : public SettingsPageUIHandler { |
| public: |
| + // Hash used by the Chrome Cleanup Tool when launching chrome with the reset |
| + // profile settings URL. |
| + static const char kCctResetSettingsHash[]; |
| + |
| ~ResetSettingsHandler() override; |
| static ResetSettingsHandler* Create( |
| @@ -78,11 +83,16 @@ class ResetSettingsHandler : public SettingsPageUIHandler { |
| // Resets profile settings to default values. |send_settings| is true if user |
| // gave their consent to upload broken settings to Google for analysis. |
| - void ResetProfile(std::string callback_id, bool send_settings); |
| + void ResetProfile( |
| + std::string callback_id, |
|
Dan Beam
2016/10/13 23:52:01
can callback_id be const-ref?
alito
2016/10/14 00:28:22
AFICT, yes. Changed to const-ref.
|
| + bool send_settings, |
| + reset_report::ChromeResetReport::ResetRequestOrigin request_origin); |
| // Closes the dialog once all requested settings has been reset. |
| - void OnResetProfileSettingsDone(std::string callback_id, |
| - bool send_feedback); |
| + void OnResetProfileSettingsDone( |
| + std::string callback_id, |
| + bool send_feedback, |
| + reset_report::ChromeResetReport::ResetRequestOrigin request_origin); |
| #if defined(OS_CHROMEOS) |
| // Will be called when powerwash dialog is shown. |