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

Unified Diff: chrome/browser/profiles/profile_window.h

Issue 1261433013: Implement online reauth UI for Locked Profiles on Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review feedback Created 5 years, 4 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/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,
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_window.cc » ('j') | chrome/browser/ui/cocoa/profiles/user_manager_mac.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698