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 <psapi.h> | 8 #include <psapi.h> |
9 #include <shellapi.h> | 9 #include <shellapi.h> |
10 | 10 |
11 #include <algorithm> | 11 #include <algorithm> |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "base/base_paths.h" | 14 #include "base/base_paths.h" |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
17 #include "base/files/file_util.h" | 17 #include "base/files/file_util.h" |
18 #include "base/logging.h" | 18 #include "base/logging.h" |
19 #include "base/macros.h" | 19 #include "base/macros.h" |
20 #include "base/path_service.h" | 20 #include "base/path_service.h" |
21 #include "base/process/launch.h" | 21 #include "base/process/launch.h" |
22 #include "base/process/process_handle.h" | 22 #include "base/process/process_handle.h" |
23 #include "base/strings/string_number_conversions.h" | 23 #include "base/strings/string_number_conversions.h" |
24 #include "base/strings/string_util.h" | 24 #include "base/strings/string_util.h" |
25 #include "base/strings/stringprintf.h" | |
26 #include "base/win/registry.h" | 25 #include "base/win/registry.h" |
27 #include "base/win/scoped_comptr.h" | 26 #include "base/win/scoped_comptr.h" |
28 #include "base/win/windows_version.h" | 27 #include "base/win/windows_version.h" |
29 #include "chrome/browser/browser_process.h" | 28 #include "chrome/browser/browser_process.h" |
30 #include "chrome/browser/first_run/upgrade_util_win.h" | 29 #include "chrome/browser/first_run/upgrade_util_win.h" |
31 #include "chrome/browser/shell_integration.h" | 30 #include "chrome/browser/shell_integration.h" |
32 #include "chrome/common/chrome_switches.h" | 31 #include "chrome/common/chrome_switches.h" |
33 #include "chrome/common/pref_names.h" | 32 #include "chrome/common/pref_names.h" |
34 #include "chrome/installer/util/browser_distribution.h" | 33 #include "chrome/installer/util/browser_distribution.h" |
35 #include "chrome/installer/util/google_update_constants.h" | 34 #include "chrome/installer/util/google_update_constants.h" |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 return false; | 167 return false; |
169 // At this point the chrome.exe has been swapped with the new one. | 168 // At this point the chrome.exe has been swapped with the new one. |
170 if (!RelaunchChromeBrowser(command_line)) { | 169 if (!RelaunchChromeBrowser(command_line)) { |
171 // The re-launch fails. Feel free to panic now. | 170 // The re-launch fails. Feel free to panic now. |
172 NOTREACHED(); | 171 NOTREACHED(); |
173 } | 172 } |
174 return true; | 173 return true; |
175 } | 174 } |
176 | 175 |
177 } // namespace upgrade_util | 176 } // namespace upgrade_util |
OLD | NEW |