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

Side by Side Diff: chrome/browser/ui/webui/signin/inline_login_handler_impl.cc

Issue 1995113002: Rename WebUI::CallJavascriptFunction to WebUI::CallJavascriptFunctionUnsafe (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
OLDNEW
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
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 857
858 void InlineLoginHandlerImpl::HandleLoginError(const std::string& error_msg) { 858 void InlineLoginHandlerImpl::HandleLoginError(const std::string& error_msg) {
859 SyncStarterCallback(OneClickSigninSyncStarter::SYNC_SETUP_FAILURE); 859 SyncStarterCallback(OneClickSigninSyncStarter::SYNC_SETUP_FAILURE);
860 Browser* browser = GetDesktopBrowser(); 860 Browser* browser = GetDesktopBrowser();
861 Profile* profile = Profile::FromWebUI(web_ui()); 861 Profile* profile = Profile::FromWebUI(web_ui());
862 862
863 CloseModalSigninIfNeeded(this); 863 CloseModalSigninIfNeeded(this);
864 if (browser && !error_msg.empty()) { 864 if (browser && !error_msg.empty()) {
865 LoginUIServiceFactory::GetForProfile(profile)-> 865 LoginUIServiceFactory::GetForProfile(profile)->
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 } 918 }
919 919
920 if (show_account_management) { 920 if (show_account_management) {
921 browser->window()->ShowAvatarBubbleFromAvatarButton( 921 browser->window()->ShowAvatarBubbleFromAvatarButton(
922 BrowserWindow::AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, 922 BrowserWindow::AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT,
923 signin::ManageAccountsParams(), 923 signin::ManageAccountsParams(),
924 signin_metrics::AccessPoint::ACCESS_POINT_AVATAR_BUBBLE_SIGN_IN); 924 signin_metrics::AccessPoint::ACCESS_POINT_AVATAR_BUBBLE_SIGN_IN);
925 } 925 }
926 } 926 }
927 } 927 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698