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/browser/first_run/upgrade_util.h" | 5 #include "chrome/browser/first_run/upgrade_util.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <shellapi.h> | 8 #include <shellapi.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/base_paths.h" | 13 #include "base/base_paths.h" |
14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
15 #include "base/environment.h" | 15 #include "base/environment.h" |
16 #include "base/file_util.h" | 16 #include "base/file_util.h" |
17 #include "base/files/file_path.h" | 17 #include "base/files/file_path.h" |
18 #include "base/logging.h" | 18 #include "base/logging.h" |
19 #include "base/path_service.h" | 19 #include "base/path_service.h" |
20 #include "base/process_util.h" | 20 #include "base/process/launch.h" |
| 21 #include "base/process/process_handle.h" |
21 #include "base/strings/string_number_conversions.h" | 22 #include "base/strings/string_number_conversions.h" |
22 #include "base/strings/string_util.h" | 23 #include "base/strings/string_util.h" |
23 #include "base/strings/stringprintf.h" | 24 #include "base/strings/stringprintf.h" |
24 #include "base/win/metro.h" | 25 #include "base/win/metro.h" |
25 #include "base/win/registry.h" | 26 #include "base/win/registry.h" |
26 #include "base/win/scoped_comptr.h" | 27 #include "base/win/scoped_comptr.h" |
27 #include "base/win/windows_version.h" | 28 #include "base/win/windows_version.h" |
28 #include "chrome/browser/first_run/upgrade_util_win.h" | 29 #include "chrome/browser/first_run/upgrade_util_win.h" |
29 #include "chrome/browser/shell_integration.h" | 30 #include "chrome/browser/shell_integration.h" |
30 #include "chrome/common/chrome_constants.h" | 31 #include "chrome/common/chrome_constants.h" |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 return false; | 251 return false; |
251 // At this point the chrome.exe has been swapped with the new one. | 252 // At this point the chrome.exe has been swapped with the new one. |
252 if (!RelaunchChromeBrowser(command_line)) { | 253 if (!RelaunchChromeBrowser(command_line)) { |
253 // The re-launch fails. Feel free to panic now. | 254 // The re-launch fails. Feel free to panic now. |
254 NOTREACHED(); | 255 NOTREACHED(); |
255 } | 256 } |
256 return true; | 257 return true; |
257 } | 258 } |
258 | 259 |
259 } // namespace upgrade_util | 260 } // namespace upgrade_util |
OLD | NEW |