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

Unified Diff: chrome/browser/component_updater/component_unpacker.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/component_updater/component_unpacker.cc
diff --git a/chrome/browser/component_updater/component_unpacker.cc b/chrome/browser/component_updater/component_unpacker.cc
index c9d44098ab602997812eb1ef8812404ce296ac76..9fa9a9ce2021493c6a5e9737ad3e3f1ad2d354ad 100644
--- a/chrome/browser/component_updater/component_unpacker.cc
+++ b/chrome/browser/component_updater/component_unpacker.cc
@@ -136,7 +136,8 @@ ComponentUnpacker::ComponentUnpacker(const std::vector<uint8>& pk_hash,
}
// We want the temporary directory to be unique and yet predictable, so
// we can easily find the package in a end user machine.
- std::string dir(StringPrintf("CRX_%s", base::HexEncode(hash, 6).c_str()));
+ std::string dir(
+ base::StringPrintf("CRX_%s", base::HexEncode(hash, 6).c_str()));
unpack_path_ = path.DirName().AppendASCII(dir.c_str());
if (file_util::DirectoryExists(unpack_path_)) {
if (!file_util::Delete(unpack_path_, true)) {

Powered by Google App Engine
This is Rietveld 408576698