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

Unified Diff: chrome/browser/extensions/webstore_startup_installer_browsertest.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/extensions/webstore_startup_installer_browsertest.cc
diff --git a/chrome/browser/extensions/webstore_startup_installer_browsertest.cc b/chrome/browser/extensions/webstore_startup_installer_browsertest.cc
index 0afb3ca8a25fba24088645025aaca981dea34d58..62ac4f9cdfe8a6412f0fa985a6061f188209a518 100644
--- a/chrome/browser/extensions/webstore_startup_installer_browsertest.cc
+++ b/chrome/browser/extensions/webstore_startup_installer_browsertest.cc
@@ -82,7 +82,8 @@ class WebstoreStartupInstallerTest : public InProcessBrowserTest {
void RunTest(const std::string& test_function_name) {
bool result = false;
- std::string script = StringPrintf("%s('%s')", test_function_name.c_str(),
+ std::string script = base::StringPrintf(
+ "%s('%s')", test_function_name.c_str(),
test_gallery_url_.c_str());
ASSERT_TRUE(content::ExecuteScriptAndExtractBool(
browser()->tab_strip_model()->GetActiveWebContents(),
@@ -100,7 +101,7 @@ class WebstoreStartupInstallerTest : public InProcessBrowserTest {
bool RunIndexedTest(const std::string& test_function_name,
int i) {
std::string result = "FAILED";
- std::string script = StringPrintf("%s('%s', %d)",
+ std::string script = base::StringPrintf("%s('%s', %d)",
test_function_name.c_str(), test_gallery_url_.c_str(), i);
EXPECT_TRUE(content::ExecuteScriptAndExtractString(
browser()->tab_strip_model()->GetActiveWebContents(),

Powered by Google App Engine
This is Rietveld 408576698