• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4 
5 #include "chrome/browser/profiles/avatar_menu.h"
6 
7 #include <string>
8 
9 #include "ash/frame/frame_util.h"
10 #include "chrome/browser/profiles/profile.h"
11 #include "ui/gfx/image/image.h"
12 
13 // static
GetImageForMenuButton(Profile * profile,gfx::Image * image,bool * is_rectangle)14 void AvatarMenu::GetImageForMenuButton(Profile* profile,
15                                        gfx::Image* image,
16                                        bool* is_rectangle) {
17   // ChromeOS avatar icon is circular.
18   *is_rectangle = false;
19   *image = ash::GetAvatarImageForContext(profile);
20 }
21