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

Unified Diff: chrome/test/automation/javascript_message_utils.h

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/service/net/service_url_request_context.cc ('k') | chrome/test/ui/ui_layout_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/automation/javascript_message_utils.h
diff --git a/chrome/test/automation/javascript_message_utils.h b/chrome/test/automation/javascript_message_utils.h
index 650fe20d8243a6925c21218e6806cc158414c971..64c93d7c5f408a2921bedfd8967a0e5b87353557 100644
--- a/chrome/test/automation/javascript_message_utils.h
+++ b/chrome/test/automation/javascript_message_utils.h
@@ -11,7 +11,7 @@
#include "base/json/json_writer.h"
#include "base/memory/scoped_ptr.h"
-#include "base/string_util.h"
+#include "base/stringprintf.h"
#include "base/values.h"
#include "chrome/test/automation/dom_element_proxy.h"
@@ -117,26 +117,26 @@ std::string JSONStringify(const T& arg) {
// |format| specifies. |format| should only expect string arguments.
template <typename T>
std::string JavaScriptPrintf(const std::string& format, const T& arg) {
- return StringPrintf(format.c_str(), JSONStringify(arg).c_str());
+ return base::StringPrintf(format.c_str(), JSONStringify(arg).c_str());
}
// Similar to above, but with an additional argument.
template <typename T1, typename T2>
std::string JavaScriptPrintf(const std::string& format, const T1& arg1,
const T2& arg2) {
- return StringPrintf(format.c_str(),
- JSONStringify(arg1).c_str(),
- JSONStringify(arg2).c_str());
+ return base::StringPrintf(format.c_str(),
+ JSONStringify(arg1).c_str(),
+ JSONStringify(arg2).c_str());
}
// Similar to above, but with an additional argument.
template <typename T1, typename T2, typename T3>
std::string JavaScriptPrintf(const std::string& format, const T1& arg1,
const T2& arg2, const T3& arg3) {
- return StringPrintf(format.c_str(),
- JSONStringify(arg1).c_str(),
- JSONStringify(arg2).c_str(),
- JSONStringify(arg3).c_str());
+ return base::StringPrintf(format.c_str(),
+ JSONStringify(arg1).c_str(),
+ JSONStringify(arg2).c_str(),
+ JSONStringify(arg3).c_str());
}
} // namespace javascript_utils
« no previous file with comments | « chrome/service/net/service_url_request_context.cc ('k') | chrome/test/ui/ui_layout_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698