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

Unified Diff: chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_config.h

Issue 2727063006: Settings reset prompt: add startup logic (Closed)
Patch Set: Nits 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/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_config.h
diff --git a/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_config.h b/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_config.h
index e2a092652c5443fb82426cdf10de077c726694fe..7162a01ed1fe15f9534892d1d9732a0514d64115 100644
--- a/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_config.h
+++ b/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_config.h
@@ -40,6 +40,13 @@ class SettingsResetPromptConfig {
// The delay before showing the reset prompt after Chrome startup.
base::TimeDelta delay_before_prompt() const;
+ // Integer that identifies the current prompt wave. This number will increase
+ // with each new prompt wave.
+ int prompt_wave() const;
+ // The minimum time that must pass since the last time the prompt was shown
+ // before a new prompt can be shown. Applies only to prompts shown during the
+ // same prompt wave.
+ base::TimeDelta time_between_prompts() const;
protected:
SettingsResetPromptConfig();
@@ -59,6 +66,8 @@ class SettingsResetPromptConfig {
// Other feature parameters.
base::TimeDelta delay_before_prompt_;
+ int prompt_wave_ = 0;
+ base::TimeDelta time_between_prompts_;
DISALLOW_COPY_AND_ASSIGN(SettingsResetPromptConfig);
};

Powered by Google App Engine
This is Rietveld 408576698