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

Unified Diff: chrome/tools/convert_dict/aff_reader.cc

Issue 7004007: iwyu: Include stringprintf.h where appropriate, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix 2. 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 | « chrome/test/unit/chrome_test_suite.cc ('k') | chrome_frame/chrome_launcher_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/tools/convert_dict/aff_reader.cc
diff --git a/chrome/tools/convert_dict/aff_reader.cc b/chrome/tools/convert_dict/aff_reader.cc
index f9869b3ecd354802de80b714d5f30044ea92843f..b3b0381b98e00366d8f30ed4116565268c42e52b 100644
--- a/chrome/tools/convert_dict/aff_reader.cc
+++ b/chrome/tools/convert_dict/aff_reader.cc
@@ -8,8 +8,8 @@
#include "base/file_util.h"
#include "base/i18n/icu_string_conversions.h"
+#include "base/stringprintf.h"
#include "base/string_split.h"
-#include "base/string_util.h"
#include "base/utf_string_conversions.h"
#include "chrome/tools/convert_dict/hunspell_reader.h"
@@ -223,10 +223,11 @@ void AffReader::AddAffix(std::string* rule) {
std::vector<std::string> tokens;
base::SplitString(part, ' ', &tokens);
if (tokens.size() >= 5) {
- part = StringPrintf("%s %s/%s %s",
- tokens[0].c_str(),
- tokens[1].c_str(), tokens[4].c_str(),
- tokens[2].c_str());
+ part = base::StringPrintf("%s %s/%s %s",
+ tokens[0].c_str(),
+ tokens[1].c_str(),
+ tokens[4].c_str(),
+ tokens[2].c_str());
}
}
@@ -257,9 +258,10 @@ void AffReader::AddAffix(std::string* rule) {
return;
}
- part = StringPrintf("%s%d %s", before_flags.c_str(),
- GetAFIndexForAFString(after_slash[0]),
- after_slash[1].c_str());
+ part = base::StringPrintf("%s%d %s",
+ before_flags.c_str(),
+ GetAFIndexForAFString(after_slash[0]),
+ after_slash[1].c_str());
}
// Reencode from here
« no previous file with comments | « chrome/test/unit/chrome_test_suite.cc ('k') | chrome_frame/chrome_launcher_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698