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

Unified Diff: chrome/app/chrome_dll_main.cc

Issue 18248: CommandLine API rework (Closed)
Patch Set: fixes Created 11 years, 11 months 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/app/breakpad.cc ('k') | chrome/app/chrome_exe_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « chrome/app/breakpad.cc ('k') | chrome/app/chrome_exe_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698