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

Unified Diff: chrome/browser/ui/webui/options2/manage_profile_handler2.cc

Issue 10453101: Convert most of the rest of chrome to ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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/ui/webui/options2/manage_profile_handler2.cc
diff --git a/chrome/browser/ui/webui/options2/manage_profile_handler2.cc b/chrome/browser/ui/webui/options2/manage_profile_handler2.cc
index ade3ca7b8984555630b5ace49f4a8abe03b1711f..3ede79051a2bb102ea5c76ac9053dec721e570c1 100644
--- a/chrome/browser/ui/webui/options2/manage_profile_handler2.cc
+++ b/chrome/browser/ui/webui/options2/manage_profile_handler2.cc
@@ -108,7 +108,7 @@ void ManageProfileHandler::SendProfileIcons() {
cache.GetGAIAPictureOfProfileAtIndex(profile_index);
if (icon) {
gfx::Image icon2 = profiles::GetAvatarIconForWebUI(*icon, true);
- gaia_picture_url_ = web_ui_util::GetImageDataUrl(*icon2.ToSkBitmap());
+ gaia_picture_url_ = web_ui_util::GetImageDataUrl(*icon2.ToImageSkia());
image_url_list.Append(Value::CreateStringValue(gaia_picture_url_));
}
}
@@ -268,7 +268,7 @@ void ManageProfileHandler::RequestProfileInfo(const ListValue* args) {
gfx::Image icon = profiles::GetAvatarIconForWebUI(
cache.GetAvatarIconOfProfileAtIndex(index), true);
profile_value.SetString("iconURL",
- web_ui_util::GetImageDataUrl(*icon.ToSkBitmap()));
+ web_ui_util::GetImageDataUrl(*icon.ToImageSkia()));
} else {
size_t icon_index = cache.GetAvatarIconIndexOfProfileAtIndex(index);
profile_value.SetString("iconURL",

Powered by Google App Engine
This is Rietveld 408576698