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

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

Issue 660813002: [Win] Add a fast profile switcher to the Windows taskbar item. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile Created 6 years, 1 month 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_avatar_icon_util.h
diff --git a/chrome/browser/profiles/profile_avatar_icon_util.h b/chrome/browser/profiles/profile_avatar_icon_util.h
index 8e272121fb71448f1af131fde489ab035db019b8..34126e9ab8415eb5d934d9402e853facb0b2c318 100644
--- a/chrome/browser/profiles/profile_avatar_icon_util.h
+++ b/chrome/browser/profiles/profile_avatar_icon_util.h
@@ -94,6 +94,13 @@ gfx::Image GetAvatarIconForTitleBar(const gfx::Image& image,
// so that when resized to a square aspect ratio it looks pretty.
SkBitmap GetAvatarIconAsSquare(const SkBitmap& source_bitmap, int scale_factor);
+// Sets |image| to the avatar corresponding to the profile at |profile_path| and
+// sets |is_rectangle| to true unless |image| is a built-in profile avatar. For
+// built-in profile avatars, always return the non-high res version.
+void GetTransparentBackgroundProfileAvatar(const base::FilePath& profile_path,
+ gfx::Image* image,
+ bool* is_rectangle);
+
} // namespace profiles
#endif // CHROME_BROWSER_PROFILES_PROFILE_AVATAR_ICON_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698