From 8f681e432845de60b648960e4d1cec404a844581 Mon Sep 17 00:00:00 2001 From: "thestig@chromium.org" Date: Fri, 9 Oct 2009 20:37:56 +0000 Subject: Add a FilePath version of the CommandLine constructor. Mark the wstring version as deprecated. BUG=none TEST=none Review URL: http://codereview.chromium.org/271031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28590 0039d316-1c4b-4281-b951-d872f2087c98 --- base/command_line.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'base/command_line.h') diff --git a/base/command_line.h b/base/command_line.h index 78f3862..c6aae86 100644 --- a/base/command_line.h +++ b/base/command_line.h @@ -26,6 +26,7 @@ #include "base/basictypes.h" #include "base/logging.h" +class FilePath; class InProcessBrowserTest; class CommandLine { @@ -42,7 +43,9 @@ class CommandLine { // Construct a new, empty command line. // |program| is the name of the program to run (aka argv[0]). - // TODO(port): should be a FilePath. + explicit CommandLine(const FilePath& program); + + // Deprecated in favor of FilePath version. explicit CommandLine(const std::wstring& program); // Uninit and free the current process's command line. -- cgit v1.1