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

Unified Diff: chrome/browser/ui/cocoa/profiles/user_manager_mac.mm

Issue 1220843003: Perform online reauth when password is changed for a locked profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use DialogDelegateView Created 5 years, 5 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
« no previous file with comments | « chrome/browser/signin/signin_promo.cc ('k') | chrome/browser/ui/user_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/profiles/user_manager_mac.mm
diff --git a/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm b/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm
index 18d717c9e9482b0ca376e29dd96ab0c8105d4111..5c8b1ae7c3db6f0d4fb83d4fff9db488fd38ed7f 100644
--- a/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm
+++ b/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm
@@ -186,6 +186,7 @@ class UserManagerWebContentsDelegate : public content::WebContentsDelegate {
@end
+// static
void UserManager::Show(
const base::FilePath& profile_path_to_focus,
profiles::UserManagerTutorialMode tutorial_mode,
@@ -217,20 +218,29 @@ void UserManager::Show(
base::Bind(&UserManagerMac::OnSystemProfileCreated, base::Time::Now()));
}
+// static
void UserManager::Hide() {
if (instance_)
[instance_->window_controller() close];
}
+// static
bool UserManager::IsShowing() {
return instance_ ? [instance_->window_controller() isVisible]: false;
}
+// static
void UserManager::OnUserManagerShown() {
if (instance_)
instance_->LogTimeToOpen();
}
+// static
+void UserManager::ShowReauthDialog(content::BrowserContext* browser_context,
+ const std::string& email) {
+ // TODO(rogerta): See equivalent views implementation in user_manager_view.cc.
+}
+
UserManagerMac::UserManagerMac(Profile* profile) {
window_controller_.reset([[UserManagerWindowController alloc]
initWithProfile:profile withObserver:this]);
« no previous file with comments | « chrome/browser/signin/signin_promo.cc ('k') | chrome/browser/ui/user_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698