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

Unified Diff: chrome/browser/ui/webui/settings/reset_settings_handler.h

Issue 2411383003: md-settings: add reset request origin to reset feedback proto. (Closed)
Patch Set: Addressed dbeam@'s comments Created 4 years, 2 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/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..7f917cbe890c1250b44dc86311d3f847cd8e40e1 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(
+ const std::string& callback_id,
+ 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.
« no previous file with comments | « chrome/browser/ui/startup/startup_browser_creator.cc ('k') | chrome/browser/ui/webui/settings/reset_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698