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

Side by Side Diff: chrome/browser/ui/views/profiles/profile_chooser_view.cc

Issue 2142053002: Addressed use-of-uninitialized-value bug for manage_accounts_button_ on L1044 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698