Update broken references to image assets
[chromium-blink-merge.git] / chrome / browser / chromeos / profiles / avatar_menu_chromeos.cc
blobc714933270e6982de838e9b562a08cda7646f34a
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"
7 #include <string>
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"
17 // static
18 void AvatarMenu::GetImageForMenuButton(const base::FilePath& profile_path,
19 gfx::Image* image,
20 bool* is_rectangle) {
21 // ChromeOS avatar icon is circular.
22 *is_rectangle = false;
23 Profile* profile =
24 g_browser_process->profile_manager()->GetProfileByPath(profile_path);
25 *image = ash::GetAvatarImageForContext(profile);