| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/views/profiles/profile_chooser_view.h" | 5 #include "chrome/browser/ui/views/profiles/profile_chooser_view.h" |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/metrics/user_metrics.h" | 8 #include "base/metrics/user_metrics.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| (...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 758 ProfileOAuth2TokenServiceFactory::GetForProfile(browser_->profile()); | 758 ProfileOAuth2TokenServiceFactory::GetForProfile(browser_->profile()); |
| 759 if (oauth2_token_service) | 759 if (oauth2_token_service) |
| 760 oauth2_token_service->RemoveObserver(this); | 760 oauth2_token_service->RemoveObserver(this); |
| 761 } | 761 } |
| 762 | 762 |
| 763 void ProfileChooserView::ResetView() { | 763 void ProfileChooserView::ResetView() { |
| 764 open_other_profile_indexes_map_.clear(); | 764 open_other_profile_indexes_map_.clear(); |
| 765 delete_account_button_map_.clear(); | 765 delete_account_button_map_.clear(); |
| 766 reauth_account_button_map_.clear(); | 766 reauth_account_button_map_.clear(); |
| 767 manage_accounts_link_ = nullptr; | 767 manage_accounts_link_ = nullptr; |
| 768 manage_accounts_button_ = nullptr; |
| 768 signin_current_profile_button_ = nullptr; | 769 signin_current_profile_button_ = nullptr; |
| 769 auth_error_email_button_ = nullptr; | 770 auth_error_email_button_ = nullptr; |
| 770 current_profile_photo_ = nullptr; | 771 current_profile_photo_ = nullptr; |
| 771 current_profile_name_ = nullptr; | 772 current_profile_name_ = nullptr; |
| 772 current_profile_card_ = nullptr; | 773 current_profile_card_ = nullptr; |
| 773 guest_profile_button_ = nullptr; | 774 guest_profile_button_ = nullptr; |
| 774 users_button_ = nullptr; | 775 users_button_ = nullptr; |
| 775 go_incognito_button_ = nullptr; | 776 go_incognito_button_ = nullptr; |
| 776 lock_button_ = nullptr; | 777 lock_button_ = nullptr; |
| 777 close_all_windows_button_ = nullptr; | 778 close_all_windows_button_ = nullptr; |
| (...skipping 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2155 IncognitoModePrefs::GetAvailability(browser_->profile()->GetPrefs()) != | 2156 IncognitoModePrefs::GetAvailability(browser_->profile()->GetPrefs()) != |
| 2156 IncognitoModePrefs::DISABLED; | 2157 IncognitoModePrefs::DISABLED; |
| 2157 return incognito_available && !browser_->profile()->IsGuestSession(); | 2158 return incognito_available && !browser_->profile()->IsGuestSession(); |
| 2158 } | 2159 } |
| 2159 | 2160 |
| 2160 void ProfileChooserView::PostActionPerformed( | 2161 void ProfileChooserView::PostActionPerformed( |
| 2161 ProfileMetrics::ProfileDesktopMenu action_performed) { | 2162 ProfileMetrics::ProfileDesktopMenu action_performed) { |
| 2162 ProfileMetrics::LogProfileDesktopMenu(action_performed, gaia_service_type_); | 2163 ProfileMetrics::LogProfileDesktopMenu(action_performed, gaia_service_type_); |
| 2163 gaia_service_type_ = signin::GAIA_SERVICE_TYPE_NONE; | 2164 gaia_service_type_ = signin::GAIA_SERVICE_TYPE_NONE; |
| 2164 } | 2165 } |
| OLD | NEW |