From 9f308ae7b39912090955910e76753aa0823461e3 Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Mon, 16 Nov 2009 21:45:17 +0000 Subject: Use GetSwitchValuePath. BUG=24672 TEST=unit_tests Patch by Thiago Farina . Review URL: http://codereview.chromium.org/375016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32093 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/test/memory_test/memory_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chrome/test/memory_test') diff --git a/chrome/test/memory_test/memory_test.cc b/chrome/test/memory_test/memory_test.cc index 40920ee..966a999 100644 --- a/chrome/test/memory_test/memory_test.cc +++ b/chrome/test/memory_test/memory_test.cc @@ -83,9 +83,9 @@ class MemoryTest : public UITest { launch_arguments_.AppendSwitch(switches::kNoEvents); // Get the specified user data dir (optional) - FilePath profile_dir = FilePath::FromWStringHack( - CommandLine::ForCurrentProcess()->GetSwitchValue( - switches::kUserDataDir)); + FilePath profile_dir = + CommandLine::ForCurrentProcess()->GetSwitchValuePath( + switches::kUserDataDir); if (profile_dir.empty()) { if (!SetupTempDirectory(GetUserDataDirSource())) { -- cgit v1.1