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 "apps/shell_integration.h" |
13 #include "base/base_paths.h" | 14 #include "base/base_paths.h" |
14 #include "base/command_line.h" | 15 #include "base/command_line.h" |
15 #include "base/environment.h" | 16 #include "base/environment.h" |
16 #include "base/file_util.h" | 17 #include "base/file_util.h" |
17 #include "base/files/file_path.h" | 18 #include "base/files/file_path.h" |
18 #include "base/logging.h" | 19 #include "base/logging.h" |
19 #include "base/path_service.h" | 20 #include "base/path_service.h" |
20 #include "base/process_util.h" | 21 #include "base/process_util.h" |
21 #include "base/string_util.h" | 22 #include "base/string_util.h" |
22 #include "base/stringprintf.h" | 23 #include "base/stringprintf.h" |
23 #include "base/strings/string_number_conversions.h" | 24 #include "base/strings/string_number_conversions.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/common/chrome_constants.h" | 30 #include "chrome/common/chrome_constants.h" |
31 #include "chrome/common/chrome_switches.h" | 31 #include "chrome/common/chrome_switches.h" |
32 #include "chrome/installer/util/browser_distribution.h" | 32 #include "chrome/installer/util/browser_distribution.h" |
33 #include "chrome/installer/util/google_update_constants.h" | 33 #include "chrome/installer/util/google_update_constants.h" |
34 #include "chrome/installer/util/install_util.h" | 34 #include "chrome/installer/util/install_util.h" |
35 #include "chrome/installer/util/shell_util.h" | 35 #include "chrome/installer/util/shell_util.h" |
36 #include "chrome/installer/util/util_constants.h" | 36 #include "chrome/installer/util/util_constants.h" |
37 #include "google_update/google_update_idl.h" | 37 #include "google_update/google_update_idl.h" |
38 | 38 |
39 namespace { | 39 namespace { |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 return false; | 250 return false; |
251 // At this point the chrome.exe has been swapped with the new one. | 251 // At this point the chrome.exe has been swapped with the new one. |
252 if (!RelaunchChromeBrowser(command_line)) { | 252 if (!RelaunchChromeBrowser(command_line)) { |
253 // The re-launch fails. Feel free to panic now. | 253 // The re-launch fails. Feel free to panic now. |
254 NOTREACHED(); | 254 NOTREACHED(); |
255 } | 255 } |
256 return true; | 256 return true; |
257 } | 257 } |
258 | 258 |
259 } // namespace upgrade_util | 259 } // namespace upgrade_util |
OLD | NEW |