Skip to content
This repository was archived by the owner on Apr 3, 2020. It is now read-only.

Commit d3319ba

Browse files
akuegelCommit bot
akuegel
authored and
Commit bot
committed
Initialize |switch_profile_link_| in the constructor.
This should fix the use of the uninitialized value in the LinkClicked() method. Currently, the variable is only initialized for supervised user profiles, but LinkClicked() is also called for other profiles. BUG=422482 Review URL: https://codereview.chromium.org/639163003 Cr-Commit-Position: refs/heads/master@{#299672}
1 parent 2eaf42f commit d3319ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,7 @@ AvatarMenuBubbleView::AvatarMenuBubbleView(
517517
buttons_view_(NULL),
518518
supervised_user_info_(NULL),
519519
separator_switch_users_(NULL),
520+
switch_profile_link_(nullptr),
520521
expanded_(false) {
521522
avatar_menu_.reset(new AvatarMenu(
522523
&g_browser_process->profile_manager()->GetProfileInfoCache(),

0 commit comments

Comments
 (0)