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

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

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.h
diff --git a/chrome/browser/profiles/profile_info_util.h b/chrome/browser/profiles/profile_info_util.h
index ce1b78e4eed1d5709fdfbc5ba6cb0a9cc940a7df..21d4b485c9e71ae5ad29e21d77a7c87e334a4057 100644
--- a/chrome/browser/profiles/profile_info_util.h
+++ b/chrome/browser/profiles/profile_info_util.h
@@ -13,6 +13,10 @@ extern const int kAvatarIconWidth;
extern const int kAvatarIconHeight;
extern const int kAvatarIconPadding;
+// Return whether or not |image| needs to be resized to a suitable size
+// as given by kAvatarIconWidth and kAvatarIconHeight.
+bool AvatarIconNeedsResizing(const gfx::Image& image);
Alexei Svitkine (slow) 2014/01/29 20:23:56 I am guessing this is here because you're going to
noms (inactive) 2014/01/29 20:31:29 I don't really know where I would reuse it. There'
+
// Returns a version of |image| of a specific size and with a grey border.
// Note that no checks are done on the width/height so make sure they're
// reasonable values; in the range of 16-256 is probably best.
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_info_util.cc » ('j') | chrome/browser/ui/cocoa/profile_menu_controller.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698