diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-12 01:55:40 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-12 01:55:40 +0000 |
commit | 1870d5cfa5ca359b44a32322c225cca1b2818e91 (patch) | |
tree | 410cfe2ee14081320dfbab6743ba85683e1aa6f3 /ui/base/l10n | |
parent | 2ba45d1412dd0bbfea931a497efad37540a8d9df (diff) | |
download | chromium_src-1870d5cfa5ca359b44a32322c225cca1b2818e91.zip chromium_src-1870d5cfa5ca359b44a32322c225cca1b2818e91.tar.gz chromium_src-1870d5cfa5ca359b44a32322c225cca1b2818e91.tar.bz2 |
iwyu: Include stringprintf.h where appropriate, part 3.
BUG=82098
TEST=none
R=csilv@chromium.org
Review URL: http://codereview.chromium.org/7016011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85088 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/base/l10n')
-rw-r--r-- | ui/base/l10n/l10n_util.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/base/l10n/l10n_util.cc b/ui/base/l10n/l10n_util.cc index e39cfbe..dc5f8d6 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) << |