| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 const std::string& session_index, | 55 const std::string& session_index, |
| 56 const std::string& signin_scoped_device_id, | 56 const std::string& signin_scoped_device_id, |
| 57 bool choose_what_to_sync, | 57 bool choose_what_to_sync, |
| 58 bool confirm_untrusted_signin); | 58 bool confirm_untrusted_signin); |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 // Overriden from SigninOAuthHelper::Consumer. | 61 // Overriden from SigninOAuthHelper::Consumer. |
| 62 virtual void OnSigninOAuthInformationAvailable( | 62 virtual void OnSigninOAuthInformationAvailable( |
| 63 const std::string& email, | 63 const std::string& email, |
| 64 const std::string& display_email, | 64 const std::string& display_email, |
| 65 const std::string& refresh_token) OVERRIDE; | 65 const std::string& refresh_token) override; |
| 66 virtual void OnSigninOAuthInformationFailure( | 66 virtual void OnSigninOAuthInformationFailure( |
| 67 const GoogleServiceAuthError& error) OVERRIDE; | 67 const GoogleServiceAuthError& error) override; |
| 68 | 68 |
| 69 SigninOAuthHelper signin_oauth_helper_; | 69 SigninOAuthHelper signin_oauth_helper_; |
| 70 base::WeakPtr<InlineLoginHandlerImpl> handler_; | 70 base::WeakPtr<InlineLoginHandlerImpl> handler_; |
| 71 Profile* profile_; | 71 Profile* profile_; |
| 72 GURL current_url_; | 72 GURL current_url_; |
| 73 std::string email_; | 73 std::string email_; |
| 74 std::string password_; | 74 std::string password_; |
| 75 std::string session_index_; | 75 std::string session_index_; |
| 76 bool choose_what_to_sync_; | 76 bool choose_what_to_sync_; |
| 77 bool confirm_untrusted_signin_; | 77 bool confirm_untrusted_signin_; |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 } | 450 } |
| 451 } | 451 } |
| 452 | 452 |
| 453 if (show_account_management) { | 453 if (show_account_management) { |
| 454 browser->window()->ShowAvatarBubbleFromAvatarButton( | 454 browser->window()->ShowAvatarBubbleFromAvatarButton( |
| 455 BrowserWindow::AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, | 455 BrowserWindow::AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, |
| 456 signin::ManageAccountsParams()); | 456 signin::ManageAccountsParams()); |
| 457 } | 457 } |
| 458 } | 458 } |
| 459 } | 459 } |
| OLD | NEW |