| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // kDoNotCreateDesktopShortcut, kDoNotCreateQuickLaunchShortcut, and | 64 // kDoNotCreateDesktopShortcut, kDoNotCreateQuickLaunchShortcut, and |
| 65 // kAltShortcutText. | 65 // kAltShortcutText. |
| 66 // |install_level| specifies whether to install per-user shortcuts or shortcuts | 66 // |install_level| specifies whether to install per-user shortcuts or shortcuts |
| 67 // for all users on the system (this should only be used to update legacy | 67 // for all users on the system (this should only be used to update legacy |
| 68 // system-level installs). | 68 // system-level installs). |
| 69 // If |install_operation| is a creation command, appropriate shortcuts will be | 69 // If |install_operation| is a creation command, appropriate shortcuts will be |
| 70 // created even if they don't exist. | 70 // created even if they don't exist. |
| 71 // If creating the Start menu shortcut is successful, it is also pinned to the | 71 // If creating the Start menu shortcut is successful, it is also pinned to the |
| 72 // taskbar. | 72 // taskbar. |
| 73 void CreateOrUpdateShortcuts( | 73 void CreateOrUpdateShortcuts( |
| 74 const FilePath& chrome_exe, | 74 const FilePath& target, |
| 75 const Product& product, | 75 const Product& product, |
| 76 const MasterPreferences& prefs, | 76 const MasterPreferences& prefs, |
| 77 InstallShortcutLevel install_level, | 77 InstallShortcutLevel install_level, |
| 78 InstallShortcutOperation install_operation); | 78 InstallShortcutOperation install_operation); |
| 79 | 79 |
| 80 // Registers Chrome on this machine. | 80 // Registers Chrome on this machine. |
| 81 // If |make_chrome_default|, also attempts to make Chrome default (potentially | 81 // If |make_chrome_default|, also attempts to make Chrome default (potentially |
| 82 // popping a UAC if the user is not an admin and HKLM registrations are required | 82 // popping a UAC if the user is not an admin and HKLM registrations are required |
| 83 // to register Chrome's capabilities on this version of Windows (i.e. | 83 // to register Chrome's capabilities on this version of Windows (i.e. |
| 84 // pre-Win8)). | 84 // pre-Win8)). |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 // Shortcut creation is skipped if the First Run beacon is present (unless | 127 // Shortcut creation is skipped if the First Run beacon is present (unless |
| 128 // |force| is set to true). | 128 // |force| is set to true). |
| 129 // |chrome| The installed product (must be a browser). | 129 // |chrome| The installed product (must be a browser). |
| 130 void HandleActiveSetupForBrowser(const FilePath& installation_root, | 130 void HandleActiveSetupForBrowser(const FilePath& installation_root, |
| 131 const Product& chrome, | 131 const Product& chrome, |
| 132 bool force); | 132 bool force); |
| 133 | 133 |
| 134 } // namespace installer | 134 } // namespace installer |
| 135 | 135 |
| 136 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_ | 136 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_ |
| OLD | NEW |