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

Side by Side Diff: chrome/installer/util/google_update_util.cc

Issue 783523004: Update installer to use the new version of LaunchProcess. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 unified diff | Download patch
« no previous file with comments | « chrome/installer/setup/setup_util_unittest.cc ('k') | chrome/installer/util/product.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/installer/util/google_update_util.h" 5 #include "chrome/installer/util/google_update_util.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 cmd.AppendSwitch(installer::switches::kVerboseLogging); 176 cmd.AppendSwitch(installer::switches::kVerboseLogging);
177 } 177 }
178 178
179 base::LaunchOptions launch_options; 179 base::LaunchOptions launch_options;
180 launch_options.force_breakaway_from_job_ = true; 180 launch_options.force_breakaway_from_job_ = true;
181 181
182 if (base::win::GetVersion() >= base::win::VERSION_VISTA && 182 if (base::win::GetVersion() >= base::win::VERSION_VISTA &&
183 base::win::UserAccountControlIsEnabled()) { 183 base::win::UserAccountControlIsEnabled()) {
184 base::LaunchElevatedProcess(cmd, launch_options); 184 base::LaunchElevatedProcess(cmd, launch_options);
185 } else { 185 } else {
186 base::LaunchProcess(cmd, launch_options, NULL); 186 base::LaunchProcess(cmd, launch_options);
187 } 187 }
188 } 188 }
189 189
190 } // namespace google_update 190 } // namespace google_update
OLDNEW
« no previous file with comments | « chrome/installer/setup/setup_util_unittest.cc ('k') | chrome/installer/util/product.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698