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

Unified Diff: chrome/browser/profile_resetter/resettable_settings_snapshot.cc

Issue 271673006: Eliminate all code related to the AutomaticProfileResetter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nit from dbeam@, using new tracked preference deprecation. Created 6 years, 5 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/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 3fc66aae13b91c4e056c768f6da98bb6c570b726..3ca697004bd7cbbfe50f07e03cefa65947150b6b 100644
--- a/chrome/browser/profile_resetter/resettable_settings_snapshot.cc
+++ b/chrome/browser/profile_resetter/resettable_settings_snapshot.cc
@@ -28,8 +28,7 @@ using feedback::FeedbackData;
namespace {
-// Feedback bucket labels.
-const char kProfileResetPromptBucket[] = "SamplingOfSettingsResetPrompt";
+// Feedback bucket label.
const char kProfileResetWebUIBucket[] = "ProfileResetReport";
// Dictionary keys for feedback report.
@@ -215,19 +214,9 @@ std::string SerializeSettingsReport(const ResettableSettingsSnapshot& snapshot,
}
void SendSettingsFeedback(const std::string& report,
- Profile* profile,
- SnapshotCaller caller) {
+ Profile* profile) {
scoped_refptr<FeedbackData> feedback_data = new FeedbackData();
- 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_category_tag(kProfileResetWebUIBucket);
feedback_data->set_description(report);
feedback_data->set_image(make_scoped_ptr(new std::string));

Powered by Google App Engine
This is Rietveld 408576698