Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4959)

Unified Diff: chrome/browser/profiles/profile_info_util.cc

Issue 149513007: [Mac] The GAIA profile photo should be resized in the Users controller menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/profiles/profile_info_util.cc
diff --git a/chrome/browser/profiles/profile_info_util.cc b/chrome/browser/profiles/profile_info_util.cc
index 0f8b1e5f85702661c30fe587eac555d6cd236082..27afd45318274a8b9b312f538036ecfb31a45dbe 100644
--- a/chrome/browser/profiles/profile_info_util.cc
+++ b/chrome/browser/profiles/profile_info_util.cc
@@ -153,6 +153,10 @@ void AvatarImageSource::Draw(gfx::Canvas* canvas) {
} // namespace internal
+bool AvatarIconNeedsResizing(const gfx::Image& image) {
+ return image.Width() > kAvatarIconWidth || image.Height() > kAvatarIconHeight;
+}
+
gfx::Image GetSizedAvatarIconWithBorder(const gfx::Image& image,
bool is_rectangle,
int width, int height) {

Powered by Google App Engine
This is Rietveld 408576698