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

Unified Diff: chrome/test/startup/startup_test.cc

Issue 3134008: CommandLine: eliminate wstring-accepting AppendLooseValue (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: utf8 Created 10 years, 4 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/test/startup/startup_test.cc
diff --git a/chrome/test/startup/startup_test.cc b/chrome/test/startup/startup_test.cc
index 1422e4961a3e2a0b071da9653126a3108aecdc47..d2bff3dd720e4d533d7ee00ca91598b87f32fb3b 100644
--- a/chrome/test/startup/startup_test.cc
+++ b/chrome/test/startup/startup_test.cc
@@ -50,7 +50,7 @@ class StartupTest : public UITest {
FilePath(FilePath::kCurrentDirectory),
FilePath(FILE_PATH_LITERAL("simple.html")));
ASSERT_TRUE(file_util::PathExists(file_url));
- launch_arguments_.AppendLooseValue(file_url.ToWStringHack());
+ launch_arguments_.AppendArgPath(file_url);
}
// Load a complex html file on startup represented by |which_tab|.
@@ -68,7 +68,7 @@ class StartupTest : public UITest {
.AppendASCII("page_cycler").AppendASCII("moz")
.AppendASCII(this_domain).AppendASCII("index.html");
GURL file_url = net::FilePathToFileURL(page_cycler_path).Resolve("?skip");
- launch_arguments_.AppendLooseValue(ASCIIToWide(file_url.spec()));
+ launch_arguments_.AppendArg(file_url.spec());
}
// Use the given profile in the test data extensions/profiles dir. This tests

Powered by Google App Engine
This is Rietveld 408576698