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

Unified Diff: chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_controller.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_controller.h
diff --git a/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_controller.h b/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_controller.h
index 748ae4eb11b0df9047cd317c3f812097e8bdf637..31a7afeaed61215e490a475e10f01c54ca33ce98 100644
--- a/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_controller.h
+++ b/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_controller.h
@@ -40,6 +40,10 @@ class SettingsResetPromptController {
// Returns the offset into the main text string where a URL was inserted. To
// be used by the dialog to apply an appropriate style to the URL text.
gfx::Range GetMainTextUrlRange() const;
+ // |DialogShown()| will be called by the dialog when the dialog's |Show()|
+ // method is called. This allows the controller to notify the model that the
+ // dialog has been shown so that preferences can be updated.
+ void DialogShown();
// |Accept()| will be called by the dialog when the user clicks the main
// button, after which the dialog will be closed.
void Accept();
@@ -62,6 +66,12 @@ class SettingsResetPromptController {
DISALLOW_COPY_AND_ASSIGN(SettingsResetPromptController);
};
+// Function to be called after startup in order to display the settings reset
+// prompt. The function will figure out if a prompt is needed, and if so, show
+// the dialog after a delay as determined by the |kSettingsResetPrompt|
+// feature parameters.
+void MaybeShowSettingsResetPromptWithDelay();
+
} // namespace safe_browsing
#endif // CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_SETTINGS_RESET_PROMPT_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698