summaryrefslogtreecommitdiffstats
path: root/chrome/installer
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/installer')
-rwxr-xr-xchrome/installer/setup/main.cc3
-rwxr-xr-xchrome/installer/setup/setup.cc1
2 files changed, 2 insertions, 2 deletions
diff --git a/chrome/installer/setup/main.cc b/chrome/installer/setup/main.cc
index e888f0b..8f57e06 100755
--- a/chrome/installer/setup/main.cc
+++ b/chrome/installer/setup/main.cc
@@ -457,7 +457,8 @@ int WINAPI wWinMain(HINSTANCE instance, HINSTANCE prev_instance,
wchar_t* command_line, int show_command) {
// The exit manager is in charge of calling the dtors of singletons.
base::AtExitManager exit_manager;
- CommandLine parsed_command_line;
+ CommandLine::Init(0, NULL);
+ const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess();
installer::InitInstallerLogging(parsed_command_line);
int options = GetInstallOptions(parsed_command_line);
if (options & installer_util::VERBOSE_LOGGING)
diff --git a/chrome/installer/setup/setup.cc b/chrome/installer/setup/setup.cc
index 27475242..0fe3afb 100755
--- a/chrome/installer/setup/setup.cc
+++ b/chrome/installer/setup/setup.cc
@@ -51,7 +51,6 @@ void DoFirstInstallTasks(std::wstring install_path, int options) {
// will work only if current user has admin rights.
std::wstring chrome_exe(install_path);
file_util::AppendToPath(&chrome_exe, installer_util::kChromeExe);
- CommandLine cmd_line;
LOG(INFO) << "Registering Chrome as browser";
ShellUtil::RegisterStatus ret = ShellUtil::FAILURE;
if (options & installer_util::MAKE_CHROME_DEFAULT) {