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

Unified Diff: chrome/common/pref_names.cc

Issue 2727063006: Settings reset prompt: add startup logic (Closed)
Patch Set: Created 3 years, 10 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/common/pref_names.cc
diff --git a/chrome/common/pref_names.cc b/chrome/common/pref_names.cc
index 254cdb91ef98bf7cd0ad42a4b9c068a641f81993..2e2e331d44b452d793638d38aff631e2f3dba684 100644
--- a/chrome/common/pref_names.cc
+++ b/chrome/common/pref_names.cc
@@ -2478,4 +2478,29 @@ const char kNumberHistoryPageIOSPromoShown[] =
const char kHistoryPageIOSPromoDismissed[] = "history_page_ios_promo_dismissed";
#endif
+// An integer that keeps track of prompt waves for the settings reset
+// prompt. Users will be prompted to reset settings at most once per prompt wave
+// for each setting that the prompt targets (default search, startup URLs and
+// homepage). The value of this setting is controlled by a variations parameter
+// and will be increased when starting a new prompt wave.
csharp 2017/03/03 00:50:46 As discussed, this should probably just check for
alito 2017/03/03 01:35:01 Done.
+const char kSettingsResetPromptPromptWave[] =
+ "settings_reset_prompt.prompt_wave";
+
+// Timestamp of the last time the settings reset prompt was shown during the
+// current prompt wave asking the user if they want to restore their search
+// engine.
+const char kSettingsResetPromptLastTriggeredForDefaultSearch[] =
+ "settings_reset_prompt.last_triggered_for_default_search";
+
+// Timestamp of the last time the settings reset prompt was shown during the
+// current prompt wave asking the user if they want to restore their startup
+// settings.
+const char kSettingsResetPromptLastTriggeredForStartupUrls[] =
+ "settings_reset_prompt.last_triggered_for_startup_urls";
+
+// Timestamp of the last time the settings reset prompt was shown during the
+// current prompt wave asking the user if they want to restore their homepage.
+const char kSettingsResetPromptLastTriggeredForHomepage[] =
+ "settings_reset_prompt.last_triggered_for_homepage";
+
} // namespace prefs

Powered by Google App Engine
This is Rietveld 408576698