| 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/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 const GURL& current_url, | 54 const GURL& current_url, |
| 55 const std::string& email, | 55 const std::string& email, |
| 56 const std::string& password, | 56 const std::string& password, |
| 57 const std::string& session_index, | 57 const std::string& session_index, |
| 58 const std::string& signin_scoped_device_id, | 58 const std::string& signin_scoped_device_id, |
| 59 bool choose_what_to_sync, | 59 bool choose_what_to_sync, |
| 60 bool confirm_untrusted_signin); | 60 bool confirm_untrusted_signin); |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 // Overriden from SigninOAuthHelper::Consumer. | 63 // Overriden from SigninOAuthHelper::Consumer. |
| 64 virtual void OnSigninOAuthInformationAvailable( | 64 void OnSigninOAuthInformationAvailable( |
| 65 const std::string& email, | 65 const std::string& email, |
| 66 const std::string& display_email, | 66 const std::string& display_email, |
| 67 const std::string& refresh_token) override; | 67 const std::string& refresh_token) override; |
| 68 virtual void OnSigninOAuthInformationFailure( | 68 void OnSigninOAuthInformationFailure( |
| 69 const GoogleServiceAuthError& error) override; | 69 const GoogleServiceAuthError& error) override; |
| 70 | 70 |
| 71 SigninOAuthHelper signin_oauth_helper_; | 71 SigninOAuthHelper signin_oauth_helper_; |
| 72 base::WeakPtr<InlineLoginHandlerImpl> handler_; | 72 base::WeakPtr<InlineLoginHandlerImpl> handler_; |
| 73 Profile* profile_; | 73 Profile* profile_; |
| 74 GURL current_url_; | 74 GURL current_url_; |
| 75 std::string email_; | 75 std::string email_; |
| 76 std::string password_; | 76 std::string password_; |
| 77 std::string session_index_; | 77 std::string session_index_; |
| 78 bool choose_what_to_sync_; | 78 bool choose_what_to_sync_; |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 } | 458 } |
| 459 } | 459 } |
| 460 | 460 |
| 461 if (show_account_management) { | 461 if (show_account_management) { |
| 462 browser->window()->ShowAvatarBubbleFromAvatarButton( | 462 browser->window()->ShowAvatarBubbleFromAvatarButton( |
| 463 BrowserWindow::AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, | 463 BrowserWindow::AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, |
| 464 signin::ManageAccountsParams()); | 464 signin::ManageAccountsParams()); |
| 465 } | 465 } |
| 466 } | 466 } |
| 467 } | 467 } |
| OLD | NEW |