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
3 // found in the LICENSE file.
5 #include "chrome/browser/profiles/avatar_menu.h"
9 #include "ash/frame/frame_util.h"
11 #include "chrome/browser/browser_process.h"
12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/profiles/profile_manager.h"
15 #include "ui/gfx/image/image.h"
18 void AvatarMenu::GetImageForMenuButton(const base::FilePath
& profile_path
,
21 // ChromeOS avatar icon is circular.
22 *is_rectangle
= false;
24 g_browser_process
->profile_manager()->GetProfileByPath(profile_path
);
25 *image
= ash::GetAvatarImageForContext(profile
);