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 <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
687 std::string error_msg; | 687 std::string error_msg; |
688 bool can_offer = CanOffer(Profile::FromWebUI(web_ui()), can_offer_for, | 688 bool can_offer = CanOffer(Profile::FromWebUI(web_ui()), can_offer_for, |
689 email, &error_msg); | 689 email, &error_msg); |
690 if (!can_offer) { | 690 if (!can_offer) { |
691 HandleLoginError(error_msg); | 691 HandleLoginError(error_msg); |
692 return; | 692 return; |
693 } | 693 } |
694 | 694 |
695 AboutSigninInternals* about_signin_internals = | 695 AboutSigninInternals* about_signin_internals = |
696 AboutSigninInternalsFactory::GetForProfile(Profile::FromWebUI(web_ui())); | 696 AboutSigninInternalsFactory::GetForProfile(Profile::FromWebUI(web_ui())); |
697 about_signin_internals->OnAuthenticationResultReceived( | 697 about_signin_internals->OnAuthenticationResultReceived("Successful"); |
698 "GAIA Auth Successful"); | |
699 | 698 |
700 content::StoragePartition* partition = | 699 content::StoragePartition* partition = |
701 content::BrowserContext::GetStoragePartitionForSite( | 700 content::BrowserContext::GetStoragePartitionForSite( |
702 contents->GetBrowserContext(), signin::GetSigninPartitionURL()); | 701 contents->GetBrowserContext(), signin::GetSigninPartitionURL()); |
703 | 702 |
704 SigninClient* signin_client = | 703 SigninClient* signin_client = |
705 ChromeSigninClientFactory::GetForProfile(Profile::FromWebUI(web_ui())); | 704 ChromeSigninClientFactory::GetForProfile(Profile::FromWebUI(web_ui())); |
706 std::string signin_scoped_device_id = | 705 std::string signin_scoped_device_id = |
707 signin_client->GetSigninScopedDeviceId(); | 706 signin_client->GetSigninScopedDeviceId(); |
708 // InlineSigninHelper will delete itself. | 707 // InlineSigninHelper will delete itself. |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
776 } | 775 } |
777 } | 776 } |
778 | 777 |
779 if (show_account_management) { | 778 if (show_account_management) { |
780 browser->window()->ShowAvatarBubbleFromAvatarButton( | 779 browser->window()->ShowAvatarBubbleFromAvatarButton( |
781 BrowserWindow::AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, | 780 BrowserWindow::AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, |
782 signin::ManageAccountsParams()); | 781 signin::ManageAccountsParams()); |
783 } | 782 } |
784 } | 783 } |
785 } | 784 } |
OLD | NEW |