| 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..b134a4314f2a4b24e938ac879072c0fd8e01ac35 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,30 @@ 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,
|
| + size_t profile_index) {
|
| + // TODO(rogerta): See equivalent views implementation in user_manager_view.cc.
|
| +}
|
| +
|
| UserManagerMac::UserManagerMac(Profile* profile) {
|
| window_controller_.reset([[UserManagerWindowController alloc]
|
| initWithProfile:profile withObserver:this]);
|
|
|