Chromium Code Reviews| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 43 | 43 |
| 44 enum InstallShortcutLevel { | 44 enum InstallShortcutLevel { |
| 45 // Install shortcuts for the current user only. | 45 // Install shortcuts for the current user only. |
| 46 CURRENT_USER, | 46 CURRENT_USER, |
| 47 // Install global shortcuts visible to all users. Note: the Quick Launch | 47 // Install global shortcuts visible to all users. Note: the Quick Launch |
| 48 // and taskbar pin shortcuts are still installed per-user (as they have no | 48 // and taskbar pin shortcuts are still installed per-user (as they have no |
| 49 // all-users version). | 49 // all-users version). |
| 50 ALL_USERS, | 50 ALL_USERS, |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 // Sets |new_target_path| as the new target path of all shortcuts in the | |
| 54 // location specified by |shortcut_location| and |dist| which point to a file: | |
| 55 // - In |old_target_dir| or one of its subdirectories, and, | |
| 56 // - Whose paths ends with |old_target_path_suffix|. | |
|
gab
2016/03/16 21:57:30
s/paths/path/
fdoray
2016/03/17 00:50:34
Done.
| |
| 57 void UpdatePerUserShortcutsInLocation( | |
| 58 const ShellUtil::ShortcutLocation shortcut_location, | |
| 59 BrowserDistribution* dist, | |
| 60 const base::FilePath& old_target_dir, | |
| 61 const base::FilePath& old_target_path_suffix, | |
| 62 const base::FilePath& new_target_path); | |
| 63 | |
| 53 // Escape |att_value| as per the XML AttValue production | 64 // Escape |att_value| as per the XML AttValue production |
| 54 // (http://www.w3.org/TR/2008/REC-xml-20081126/#NT-AttValue) for a value in | 65 // (http://www.w3.org/TR/2008/REC-xml-20081126/#NT-AttValue) for a value in |
| 55 // single quotes. | 66 // single quotes. |
| 56 void EscapeXmlAttributeValueInSingleQuotes(base::string16* att_value); | 67 void EscapeXmlAttributeValueInSingleQuotes(base::string16* att_value); |
| 57 | 68 |
| 58 // Creates VisualElementsManifest.xml beside chrome.exe in |src_path| if | 69 // Creates VisualElementsManifest.xml beside chrome.exe in |src_path| if |
| 59 // |src_path|\VisualElements exists. | 70 // |src_path|\VisualElements exists. |
| 60 // Returns true unless the manifest is supposed to be created, but fails to be. | 71 // Returns true unless the manifest is supposed to be created, but fails to be. |
| 61 bool CreateVisualElementsManifest(const base::FilePath& src_path, | 72 bool CreateVisualElementsManifest(const base::FilePath& src_path, |
| 62 const Version& version); | 73 const Version& version); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 131 // Shortcut creation is skipped if the First Run beacon is present (unless | 142 // Shortcut creation is skipped if the First Run beacon is present (unless |
| 132 // |force| is set to true). | 143 // |force| is set to true). |
| 133 // |chrome| The installed product (must be a browser). | 144 // |chrome| The installed product (must be a browser). |
| 134 void HandleActiveSetupForBrowser(const base::FilePath& installation_root, | 145 void HandleActiveSetupForBrowser(const base::FilePath& installation_root, |
| 135 const Product& chrome, | 146 const Product& chrome, |
| 136 bool force); | 147 bool force); |
| 137 | 148 |
| 138 } // namespace installer | 149 } // namespace installer |
| 139 | 150 |
| 140 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_ | 151 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_ |
| OLD | NEW |