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

Unified Diff: chrome/browser/ui/webui/options/manage_profile_handler.cc

Issue 11415226: webui/options: Do not use Value::CreateStringValue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/ui/webui/options/manage_profile_handler.cc
diff --git a/chrome/browser/ui/webui/options/manage_profile_handler.cc b/chrome/browser/ui/webui/options/manage_profile_handler.cc
index e2f796f36859b3b4cd1dfbd505379c7918f75bf1..212ac7e403c67ee6d2f72076a2035d16ed2ea6ef 100644
--- a/chrome/browser/ui/webui/options/manage_profile_handler.cc
+++ b/chrome/browser/ui/webui/options/manage_profile_handler.cc
@@ -124,14 +124,14 @@ void ManageProfileHandler::SendProfileIcons(
if (icon) {
gfx::Image icon2 = profiles::GetAvatarIconForWebUI(*icon, true);
gaia_picture_url_ = web_ui_util::GetBitmapDataUrl(icon2.AsBitmap());
- image_url_list.Append(Value::CreateStringValue(gaia_picture_url_));
+ image_url_list.Append(new base::StringValue(gaia_picture_url_));
}
}
// Next add the default avatar icons.
for (size_t i = 0; i < ProfileInfoCache::GetDefaultAvatarIconCount(); i++) {
std::string url = ProfileInfoCache::GetDefaultAvatarIconUrl(i);
- image_url_list.Append(Value::CreateStringValue(url));
+ image_url_list.Append(new base::StringValue(url));
}
web_ui()->CallJavascriptFunction(

Powered by Google App Engine
This is Rietveld 408576698