| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/webui/signin/inline_login_handler_impl.h" | 5 #include "chrome/browser/ui/webui/signin/inline_login_handler_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 content::WebContents* contents, | 108 content::WebContents* contents, |
| 109 signin_metrics::AccessPoint access_point) { | 109 signin_metrics::AccessPoint access_point) { |
| 110 if (access_point != signin_metrics::AccessPoint::ACCESS_POINT_SETTINGS) | 110 if (access_point != signin_metrics::AccessPoint::ACCESS_POINT_SETTINGS) |
| 111 RedirectToNtpOrAppsPage(contents, access_point); | 111 RedirectToNtpOrAppsPage(contents, access_point); |
| 112 } | 112 } |
| 113 | 113 |
| 114 void CloseModalSigninIfNeeded(InlineLoginHandlerImpl* handler) { | 114 void CloseModalSigninIfNeeded(InlineLoginHandlerImpl* handler) { |
| 115 if (handler && switches::UsePasswordSeparatedSigninFlow()) { | 115 if (handler && switches::UsePasswordSeparatedSigninFlow()) { |
| 116 Browser* browser = handler->GetDesktopBrowser(); | 116 Browser* browser = handler->GetDesktopBrowser(); |
| 117 if (browser) | 117 if (browser) |
| 118 browser->CloseModalSigninWindow(); | 118 browser->signin_view_controller()->CloseModalSignin(); |
| 119 } | 119 } |
| 120 } | 120 } |
| 121 | 121 |
| 122 void UnlockProfileAndHideLoginUI(const base::FilePath profile_path, | 122 void UnlockProfileAndHideLoginUI(const base::FilePath profile_path, |
| 123 InlineLoginHandlerImpl* handler) { | 123 InlineLoginHandlerImpl* handler) { |
| 124 if (!profile_path.empty()) { | 124 if (!profile_path.empty()) { |
| 125 ProfileManager* profile_manager = g_browser_process->profile_manager(); | 125 ProfileManager* profile_manager = g_browser_process->profile_manager(); |
| 126 if (profile_manager) { | 126 if (profile_manager) { |
| 127 ProfileAttributesEntry* entry; | 127 ProfileAttributesEntry* entry; |
| 128 if (profile_manager->GetProfileAttributesStorage() | 128 if (profile_manager->GetProfileAttributesStorage() |
| (...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 881 | 881 |
| 882 if (show_account_management) { | 882 if (show_account_management) { |
| 883 browser->window()->ShowAvatarBubbleFromAvatarButton( | 883 browser->window()->ShowAvatarBubbleFromAvatarButton( |
| 884 BrowserWindow::AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, | 884 BrowserWindow::AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, |
| 885 signin::ManageAccountsParams(), | 885 signin::ManageAccountsParams(), |
| 886 signin_metrics::AccessPoint::ACCESS_POINT_AVATAR_BUBBLE_SIGN_IN, | 886 signin_metrics::AccessPoint::ACCESS_POINT_AVATAR_BUBBLE_SIGN_IN, |
| 887 false); | 887 false); |
| 888 } | 888 } |
| 889 } | 889 } |
| 890 } | 890 } |
| OLD | NEW |