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]); |