Chromium Code Reviews| 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..f775a2bab4c2495084ed7d6a104d27c9a8c9020d 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 by the |kSettingsResetPrompt| |
|
csharp
2017/03/03 00:50:46
nit: by by -> by
alito
2017/03/03 01:35:01
Done.
|
| +// feature parameters. |
| +void MaybeShowSettingsResetPromptWithDelay(); |
| + |
| } // namespace safe_browsing |
| #endif // CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_SETTINGS_RESET_PROMPT_CONTROLLER_H_ |