| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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/profiles/avatar_menu.h" | 5 #include "chrome/browser/profiles/avatar_menu.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/browser/profiles/profile_manager.h" | 11 #include "chrome/browser/profiles/profile_manager.h" |
| 12 #include "chrome/browser/ui/ash/session_util.h" | 12 #include "chrome/browser/ui/ash/session_util.h" |
| 13 | 13 |
| 14 #include "ui/gfx/image/image.h" | 14 #include "ui/gfx/image/image.h" |
| 15 | 15 |
| 16 // static | 16 // static |
| 17 void AvatarMenu::GetImageForMenuButton(const base::FilePath& profile_path, | 17 void AvatarMenu::GetImageForMenuButton(const base::FilePath& profile_path, |
| 18 gfx::Image* image, | 18 gfx::Image* image) { |
| 19 bool* is_rectangle) { | |
| 20 // ChromeOS avatar icon is circular. | 19 // ChromeOS avatar icon is circular. |
| 21 *is_rectangle = false; | |
| 22 Profile* profile = | 20 Profile* profile = |
| 23 g_browser_process->profile_manager()->GetProfileByPath(profile_path); | 21 g_browser_process->profile_manager()->GetProfileByPath(profile_path); |
| 24 *image = gfx::Image(GetAvatarImageForContext(profile)); | 22 *image = gfx::Image(GetAvatarImageForContext(profile)); |
| 25 } | 23 } |
| OLD | NEW |