Index: chrome/app/chrome_dll_main.cc |
diff --git a/chrome/app/chrome_dll_main.cc b/chrome/app/chrome_dll_main.cc |
index 48d5b214aa33f600dcabe9ad8b4c7a1224e2e907..29429d00775b911d8f019ed65e86d0eb325167cf 100644 |
--- a/chrome/app/chrome_dll_main.cc |
+++ b/chrome/app/chrome_dll_main.cc |
@@ -204,10 +204,12 @@ int ChromeMain(int argc, const char** argv) { |
base::ScopedNSAutoreleasePool autorelease_pool; |
// Initialize the command line. |
-#if defined(OS_POSIX) |
- CommandLine::SetArgcArgv(argc, argv); |
+#if defined(OS_WIN) |
+ CommandLine::Init(0, NULL); |
+#else |
+ CommandLine::Init(argc, argv); |
#endif |
- CommandLine parsed_command_line; |
+ const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess(); |
SetupCRT(parsed_command_line); |