OLD | NEW |
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/file_util.h" | |
9 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/files/file_util.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/process/kill.h" | 12 #include "base/process/kill.h" |
13 #include "base/process/launch.h" | 13 #include "base/process/launch.h" |
14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
16 #include "base/win/registry.h" | 16 #include "base/win/registry.h" |
17 #include "base/win/scoped_handle.h" | 17 #include "base/win/scoped_handle.h" |
18 #include "base/win/win_util.h" | 18 #include "base/win/win_util.h" |
19 #include "base/win/windows_version.h" | 19 #include "base/win/windows_version.h" |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, NULL); | 184 base::LaunchElevatedProcess(cmd, launch_options, NULL); |
185 } else { | 185 } else { |
186 base::LaunchProcess(cmd, launch_options, NULL); | 186 base::LaunchProcess(cmd, launch_options, NULL); |
187 } | 187 } |
188 } | 188 } |
189 | 189 |
190 } // namespace google_update | 190 } // namespace google_update |
OLD | NEW |