Index: chrome/browser/profile_resetter/resettable_settings_snapshot.cc |
diff --git a/chrome/browser/profile_resetter/resettable_settings_snapshot.cc b/chrome/browser/profile_resetter/resettable_settings_snapshot.cc |
index 439153c017971521a2614ebc6f37b3f8b21d76ff..fb58ee387c38371b040a0c301e3596e60d43dfe2 100644 |
--- a/chrome/browser/profile_resetter/resettable_settings_snapshot.cc |
+++ b/chrome/browser/profile_resetter/resettable_settings_snapshot.cc |
@@ -29,7 +29,8 @@ using feedback::FeedbackData; |
namespace { |
-// Feedback bucket label. |
+// Feedback bucket labels. |
+const char kProfileResetPromptBucket[] = "SamplingOfSettingsResetPrompt"; |
const char kProfileResetWebUIBucket[] = "ProfileResetReport"; |
// Dictionary keys for feedback report. |
@@ -219,9 +220,19 @@ std::string SerializeSettingsReport(const ResettableSettingsSnapshot& snapshot, |
} |
void SendSettingsFeedback(const std::string& report, |
- Profile* profile) { |
+ Profile* profile, |
+ SnapshotCaller caller) { |
scoped_refptr<FeedbackData> feedback_data = new FeedbackData(); |
- feedback_data->set_category_tag(kProfileResetWebUIBucket); |
+ std::string bucket; |
+ switch (caller) { |
+ case PROFILE_RESET_WEBUI: |
+ bucket = kProfileResetWebUIBucket; |
+ break; |
+ case PROFILE_RESET_PROMPT: |
+ bucket = kProfileResetPromptBucket; |
+ break; |
+ } |
+ feedback_data->set_category_tag(bucket); |
feedback_data->set_description(report); |
feedback_data->set_image(make_scoped_ptr(new std::string)); |