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

Unified Diff: webkit/tools/test_shell/node_leak_test.cc

Issue 375016: Use GetSwitchValuePath. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 1 month 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/reliability/page_load_test.cc ('k') | webkit/tools/test_shell/test_shell_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/node_leak_test.cc
===================================================================
--- webkit/tools/test_shell/node_leak_test.cc (revision 31829)
+++ webkit/tools/test_shell/node_leak_test.cc (working copy)
@@ -32,8 +32,8 @@
virtual void SetUp() {
const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess();
- FilePath cache_path = FilePath::FromWStringHack(
- parsed_command_line.GetSwitchValue(test_shell::kCacheDir));
+ FilePath cache_path =
+ parsed_command_line.GetSwitchValuePath(test_shell::kCacheDir);
if (cache_path.empty()) {
PathService::Get(base::DIR_EXE, &cache_path);
cache_path = cache_path.AppendASCII("cache");
@@ -75,9 +75,8 @@
TEST_F(NodeLeakTest, TestURL) {
const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess();
- if (parsed_command_line.HasSwitch(kTestUrlSwitch)) {
+ if (parsed_command_line.HasSwitch(kTestUrlSwitch))
NavigateToURL(parsed_command_line.GetSwitchValue(kTestUrlSwitch).c_str());
- }
}
} // namespace
« no previous file with comments | « chrome/test/reliability/page_load_test.cc ('k') | webkit/tools/test_shell/test_shell_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698