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

Unified Diff: ui/base/l10n/l10n_util.cc

Issue 7016011: iwyu: Include stringprintf.h where appropriate, part 3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win fix. Created 9 years, 7 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
« no previous file with comments | « ui/base/clipboard/clipboard_util_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/l10n/l10n_util.cc
diff --git a/ui/base/l10n/l10n_util.cc b/ui/base/l10n/l10n_util.cc
index e39cfbeb27de1b7d7b5b6408a94809f6ef3a1a61..dc5f8d67a5ca57318d9e858f50ad21c67e1293e9 100644
--- a/ui/base/l10n/l10n_util.cc
+++ b/ui/base/l10n/l10n_util.cc
@@ -18,6 +18,7 @@
#include "base/i18n/rtl.h"
#include "base/memory/scoped_ptr.h"
#include "base/path_service.h"
+#include "base/stringprintf.h"
#include "base/string_number_conversions.h"
#include "base/string_split.h"
#include "base/sys_string_conversions.h"
@@ -602,7 +603,8 @@ static string16 GetStringF(int message_id,
for (size_t i = 0; i < 9; ++i) {
bool placeholder_should_exist = replacements.size() > i;
- std::string placeholder = StringPrintf("$%d", static_cast<int>(i + 1));
+ std::string placeholder =
+ base::StringPrintf("$%d", static_cast<int>(i + 1));
size_t pos = utf8_string.find(placeholder.c_str());
if (placeholder_should_exist) {
DCHECK_NE(std::string::npos, pos) <<
« no previous file with comments | « ui/base/clipboard/clipboard_util_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698