| Index: chrome/browser/profiles/profile_window.h
|
| diff --git a/chrome/browser/profiles/profile_window.h b/chrome/browser/profiles/profile_window.h
|
| index 783dc7bc4b23d5da8c61af318bc7fbd47cd44a59..1344e967bcab43061c5faafb8c9ff91f142f8917 100644
|
| --- a/chrome/browser/profiles/profile_window.h
|
| +++ b/chrome/browser/profiles/profile_window.h
|
| @@ -42,6 +42,27 @@ extern const char kUserManagerSelectProfileChromeSettings[];
|
| extern const char kUserManagerSelectProfileChromeMemory[];
|
| extern const char kUserManagerSelectProfileAppLauncher[];
|
|
|
| +// This class observes the WebUI used in the UserManager to perform online
|
| +// reauthentication of locked profiles. Its concretely implemented in
|
| +// UserManagerMac and UserManagerView to specialize the closing of the UI's
|
| +// dialog widget.
|
| +class ReauthDialogObserver : public content::WebContentsObserver {
|
| + public:
|
| + ReauthDialogObserver(content::WebContents* web_contents,
|
| + const std::string& email_address);
|
| + ~ReauthDialogObserver() override {}
|
| +
|
| + private:
|
| + // content::WebContentsObserver:
|
| + void DidStopLoading() override;
|
| +
|
| + virtual void CloseReauthDialog() = 0;
|
| +
|
| + const std::string email_address_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ReauthDialogObserver);
|
| +};
|
| +
|
| // Returns the path of the profile connected to the given email. If no profile
|
| // is found an empty file path is returned.
|
| base::FilePath GetPathOfProfileWithEmail(ProfileManager* profile_manager,
|
|
|