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

Unified Diff: chrome/browser/ui/user_manager.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: Use ConstrainedWindow. 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/ui/user_manager.h
diff --git a/chrome/browser/ui/user_manager.h b/chrome/browser/ui/user_manager.h
index e5909974f62672c5bf042cde2b174b88d3748236..81021cafd849f5182a5916364dff1b9bc8baa02b 100644
--- a/chrome/browser/ui/user_manager.h
+++ b/chrome/browser/ui/user_manager.h
@@ -47,6 +47,27 @@ class UserManager {
static const int kReauthDialogWidth = 360;
static const int kReauthDialogHeight = 440;
+ // 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);
+ };
+
private:
DISALLOW_COPY_AND_ASSIGN(UserManager);
};

Powered by Google App Engine
This is Rietveld 408576698