Chromium Code Reviews| Index: chrome/browser/ui/browser_dialogs.h |
| diff --git a/chrome/browser/ui/browser_dialogs.h b/chrome/browser/ui/browser_dialogs.h |
| index 98ead916e7225cec73feea1f967eb3e55bf31d78..b26dc21a47a59783a1d9e61187eaac1137ba56f7 100644 |
| --- a/chrome/browser/ui/browser_dialogs.h |
| +++ b/chrome/browser/ui/browser_dialogs.h |
| @@ -24,9 +24,14 @@ |
| class Browser; |
| class LoginHandler; |
| class Profile; |
| +class SigninManager; |
| class WebShareTarget; |
| struct WebApplicationInfo; |
| +namespace base { |
| +class TimeDelta; |
| +} |
| + |
| namespace content { |
| class BrowserContext; |
| class ColorChooser; |
| @@ -59,6 +64,10 @@ namespace ui { |
| class WebDialogDelegate; |
| } |
| +namespace views { |
| +class Widget; |
| +} |
| + |
| namespace chrome { |
| // Shows or hides the Task Manager. |browser| can be NULL when called from Ash. |
| @@ -159,6 +168,19 @@ void ShowWebShareTargetPickerDialog(gfx::NativeWindow parent_window, |
| #endif // TOOLKIT_VIEWS |
| +#if defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX) |
| + |
| +// Show the ForcedReauthenticationDialog for |profile|. If there're no opened |
| +// browser windows for |profile|, |signin_manager| will be called to signed out |
| +// immediately. Otherwise, dialog will be closed with all browser windows are |
| +// assoicated to |profile| after |countdown_duration| if there is no reauth. |
| +views::Widget* ShowForcedReauthenticationDialog( |
|
sky
2017/06/22 14:52:02
Remember, no platform specific ui code here.
Also,
zmin
2017/06/23 00:58:40
And I have moved the new class/function Declaratio
|
| + Profile* profile, |
| + SigninManager* signin_manager, |
| + base::TimeDelta countdown_duration); |
| + |
| +#endif // TOOLKIT_VIEWS && !OS_MACOSX |
| + |
| // Values used in the Dialog.Creation UMA metric. Each value represents a |
| // different type of dialog box. |
| // These values are written to logs. New enum values can be added, but existing |