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

Unified Diff: chrome/browser/extensions/convert_web_app.cc

Issue 12767006: [Cleanup] Remove StringPrintf from global namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, once more Created 7 years, 9 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/extensions/convert_web_app.cc
diff --git a/chrome/browser/extensions/convert_web_app.cc b/chrome/browser/extensions/convert_web_app.cc
index dc65e33a87e043ee56c66a2612f9f61b6c3c44ce..d818a7406f4d30bf3a37a6dc2465d19b944f644d 100644
--- a/chrome/browser/extensions/convert_web_app.cc
+++ b/chrome/browser/extensions/convert_web_app.cc
@@ -122,9 +122,9 @@ scoped_refptr<Extension> ConvertWebAppToExtension(
DictionaryValue* icons = new DictionaryValue();
root->Set(keys::kIcons, icons);
for (size_t i = 0; i < web_app.icons.size(); ++i) {
- std::string size = StringPrintf("%i", web_app.icons[i].width);
- std::string icon_path = StringPrintf("%s/%s.png", kIconsDirName,
- size.c_str());
+ std::string size = base::StringPrintf("%i", web_app.icons[i].width);
+ std::string icon_path = base::StringPrintf("%s/%s.png", kIconsDirName,
+ size.c_str());
icons->SetString(size, icon_path);
}
@@ -163,7 +163,7 @@ scoped_refptr<Extension> ConvertWebAppToExtension(
continue;
base::FilePath icon_file = icons_dir.AppendASCII(
- StringPrintf("%i.png", web_app.icons[i].width));
+ base::StringPrintf("%i.png", web_app.icons[i].width));
std::vector<unsigned char> image_data;
if (!gfx::PNGCodec::EncodeBGRASkBitmap(web_app.icons[i].data,
false,

Powered by Google App Engine
This is Rietveld 408576698