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

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

Issue 2417143003: Add UMA reporting of reset request origin. (Closed)
Patch Set: 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/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 d35089dd76d9c7ebf2c3e4862562b1d4b68b5581..7300d19830922de043f75d8d0faeab6ba9a66ab3 100644
--- a/chrome/browser/ui/webui/options/reset_profile_settings_handler.h
+++ b/chrome/browser/ui/webui/options/reset_profile_settings_handler.h
@@ -11,6 +11,7 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
+#include "chrome/browser/profile_resetter/profile_reset_report.pb.h"
#include "chrome/browser/ui/webui/options/options_ui.h"
namespace base {
@@ -50,8 +51,9 @@ class ResetProfileSettingsHandler
void HandleResetProfileSettings(const base::ListValue* value);
// Closes the dialog once all requested settings has been reset.
- void OnResetProfileSettingsDone(bool send_feedback,
- const std::string& reset_request_origin);
+ void OnResetProfileSettingsDone(
+ bool send_feedback,
+ reset_report::ChromeResetReport::ResetRequestOrigin request_origin);
// Called when the confirmation box appears.
void OnShowResetProfileDialog(const base::ListValue* value);
@@ -64,8 +66,9 @@ 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,
- const std::string& reset_request_origin);
+ void ResetProfile(
+ bool send_settings,
+ reset_report::ChromeResetReport::ResetRequestOrigin request_origin);
// Sets new values for the feedback area.
void UpdateFeedbackUI();

Powered by Google App Engine
This is Rietveld 408576698