| 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 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 844 if (profile_manager) { | 844 if (profile_manager) { |
| 845 ProfileAttributesEntry* entry; | 845 ProfileAttributesEntry* entry; |
| 846 if (profile_manager->GetProfileAttributesStorage() | 846 if (profile_manager->GetProfileAttributesStorage() |
| 847 .GetProfileAttributesWithPath(params.profile_path, &entry)) { | 847 .GetProfileAttributesWithPath(params.profile_path, &entry)) { |
| 848 entry->SetIsSigninRequired(false); | 848 entry->SetIsSigninRequired(false); |
| 849 } | 849 } |
| 850 } | 850 } |
| 851 } | 851 } |
| 852 | 852 |
| 853 if (params.handler) | 853 if (params.handler) |
| 854 params.handler-> | 854 params.handler->web_ui()->CallJavascriptFunctionUnsafe( |
| 855 web_ui()->CallJavascriptFunction("inline.login.closeDialog"); | 855 "inline.login.closeDialog"); |
| 856 | 856 |
| 857 CloseModalSigninIfNeeded(params.handler); | 857 CloseModalSigninIfNeeded(params.handler); |
| 858 } | 858 } |
| 859 | 859 |
| 860 void InlineLoginHandlerImpl::HandleLoginError(const std::string& error_msg) { | 860 void InlineLoginHandlerImpl::HandleLoginError(const std::string& error_msg) { |
| 861 SyncStarterCallback(OneClickSigninSyncStarter::SYNC_SETUP_FAILURE); | 861 SyncStarterCallback(OneClickSigninSyncStarter::SYNC_SETUP_FAILURE); |
| 862 Browser* browser = GetDesktopBrowser(); | 862 Browser* browser = GetDesktopBrowser(); |
| 863 Profile* profile = Profile::FromWebUI(web_ui()); | 863 Profile* profile = Profile::FromWebUI(web_ui()); |
| 864 | 864 |
| 865 CloseModalSigninIfNeeded(this); | 865 CloseModalSigninIfNeeded(this); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 920 } | 920 } |
| 921 | 921 |
| 922 if (show_account_management) { | 922 if (show_account_management) { |
| 923 browser->window()->ShowAvatarBubbleFromAvatarButton( | 923 browser->window()->ShowAvatarBubbleFromAvatarButton( |
| 924 BrowserWindow::AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, | 924 BrowserWindow::AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, |
| 925 signin::ManageAccountsParams(), | 925 signin::ManageAccountsParams(), |
| 926 signin_metrics::AccessPoint::ACCESS_POINT_AVATAR_BUBBLE_SIGN_IN); | 926 signin_metrics::AccessPoint::ACCESS_POINT_AVATAR_BUBBLE_SIGN_IN); |
| 927 } | 927 } |
| 928 } | 928 } |
| 929 } | 929 } |
| OLD | NEW |