| 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 // This file contains the specification of setup main functions. | 5 // This file contains the specification of setup main functions. |
| 6 | 6 |
| 7 #ifndef CHROME_INSTALLER_SETUP_INSTALL_H_ | 7 #ifndef CHROME_INSTALLER_SETUP_INSTALL_H_ |
| 8 #define CHROME_INSTALLER_SETUP_INSTALL_H_ | 8 #define CHROME_INSTALLER_SETUP_INSTALL_H_ |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 const InstallationState& original_state, | 122 const InstallationState& original_state, |
| 123 const InstallerState& installer_state, | 123 const InstallerState& installer_state, |
| 124 const base::FilePath& setup_path, | 124 const base::FilePath& setup_path, |
| 125 const base::FilePath& archive_path, | 125 const base::FilePath& archive_path, |
| 126 const base::FilePath& install_temp_path, | 126 const base::FilePath& install_temp_path, |
| 127 const base::FilePath& src_path, | 127 const base::FilePath& src_path, |
| 128 const base::FilePath& prefs_path, | 128 const base::FilePath& prefs_path, |
| 129 const installer::MasterPreferences& prefs, | 129 const installer::MasterPreferences& prefs, |
| 130 const base::Version& new_version); | 130 const base::Version& new_version); |
| 131 | 131 |
| 132 // Launches a process that deletes files that belong to old versions of Chrome. |
| 133 void LaunchDeleteOldVersionsProcess(const InstallerState& installer_state); |
| 134 |
| 132 // Performs installation-related tasks following an OS upgrade. | 135 // Performs installation-related tasks following an OS upgrade. |
| 133 // |chrome| The installed product (must be a browser). | 136 // |chrome| The installed product (must be a browser). |
| 134 // |installed_version| the current version of this install. | 137 // |installed_version| the current version of this install. |
| 135 void HandleOsUpgradeForBrowser(const InstallerState& installer_state, | 138 void HandleOsUpgradeForBrowser(const InstallerState& installer_state, |
| 136 const Product& chrome, | 139 const Product& chrome, |
| 137 const base::Version& installed_version); | 140 const base::Version& installed_version); |
| 138 | 141 |
| 139 // Performs per-user installation-related tasks on Active Setup (ran on first | 142 // Performs per-user installation-related tasks on Active Setup (ran on first |
| 140 // login for each user post system-level Chrome install). | 143 // login for each user post system-level Chrome install). |
| 141 // |installation_root|: The root of this install (i.e. the directory in which | 144 // |installation_root|: The root of this install (i.e. the directory in which |
| 142 // chrome.exe is installed). | 145 // chrome.exe is installed). |
| 143 // Shortcut creation is skipped if the First Run beacon is present (unless | 146 // Shortcut creation is skipped if the First Run beacon is present (unless |
| 144 // |force| is set to true). | 147 // |force| is set to true). |
| 145 // |chrome| The installed product (must be a browser). | 148 // |chrome| The installed product (must be a browser). |
| 146 void HandleActiveSetupForBrowser(const base::FilePath& installation_root, | 149 void HandleActiveSetupForBrowser(const base::FilePath& installation_root, |
| 147 const Product& chrome, | 150 const Product& chrome, |
| 148 bool force); | 151 bool force); |
| 149 | 152 |
| 150 } // namespace installer | 153 } // namespace installer |
| 151 | 154 |
| 152 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_ | 155 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_ |
| OLD | NEW |