| Index: base/command_line.h
|
| diff --git a/base/command_line.h b/base/command_line.h
|
| index 3de8873e26aa608352415065ac4885ae238044be..0608b88403dc1e0f7f9a852d3b607a11b5bcd4d7 100644
|
| --- a/base/command_line.h
|
| +++ b/base/command_line.h
|
| @@ -69,6 +69,13 @@ class BASE_EXPORT CommandLine {
|
| // object and the behavior will be the same as Posix systems (only hyphens
|
| // begin switches, everything else will be an arg).
|
| static void set_slash_is_not_a_switch();
|
| +
|
| + // Normally when the CommandLine singleton is initialized it gets the command
|
| + // line via the GetCommandLineW API and then uses the shell32 API
|
| + // CommandLineToArgvW to parse the command line and convert it back to
|
| + // argc and argv. Tests who don't want this dependency on shell32 and need
|
| + // to honor the arguments passed in should use this function.
|
| + static void InitUsingArgvForTesting(int argc, const char* const* argv);
|
| #endif
|
|
|
| // Initialize the current process CommandLine singleton. On Windows, ignores
|
| @@ -209,6 +216,7 @@ class BASE_EXPORT CommandLine {
|
| private:
|
| // Disallow default constructor; a program name must be explicitly specified.
|
| CommandLine();
|
| +
|
| // Allow the copy constructor. A common pattern is to copy of the current
|
| // process's command line and then add some flags to it. For example:
|
| // CommandLine cl(*CommandLine::ForCurrentProcess());
|
|
|