OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 helper functions used by setup. | 5 // This file contains helper functions used by setup. |
6 | 6 |
7 #ifndef CHROME_INSTALLER_UTIL_HELPER_H_ | 7 #ifndef CHROME_INSTALLER_UTIL_HELPER_H_ |
8 #define CHROME_INSTALLER_UTIL_HELPER_H_ | 8 #define CHROME_INSTALLER_UTIL_HELPER_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
| 11 #include <string> |
| 12 |
11 class BrowserDistribution; | 13 class BrowserDistribution; |
12 class CommandLine; | 14 class CommandLine; |
13 class FilePath; | 15 class FilePath; |
14 | 16 |
15 namespace installer { | 17 namespace installer { |
16 | 18 |
17 // Checks if a distribution is currently installed as part of a multi-install. | 19 // Checks if a distribution is currently installed as part of a multi-install. |
18 bool IsInstalledAsMulti(bool system_install, BrowserDistribution* dist); | 20 bool IsInstalledAsMulti(bool system_install, BrowserDistribution* dist); |
19 | 21 |
20 // Retrieves the command line switches for uninstalling the distribution. | 22 // Retrieves the command line switches for uninstalling the distribution. |
(...skipping 23 matching lines...) Expand all Loading... |
44 // 2) The same folder as Chrome is installed into. | 46 // 2) The same folder as Chrome is installed into. |
45 // Right now this function will only return Chrome's installation folder | 47 // Right now this function will only return Chrome's installation folder |
46 // if Chrome Frame is not already installed or if Chrome Frame is installed | 48 // if Chrome Frame is not already installed or if Chrome Frame is installed |
47 // in multi_install mode. | 49 // in multi_install mode. |
48 // If multi_install is false or if CF is installed in single mode, then the | 50 // If multi_install is false or if CF is installed in single mode, then the |
49 // returned path will be the "Chrome Frame" subfolder of either the user or | 51 // returned path will be the "Chrome Frame" subfolder of either the user or |
50 // system default installation folders. | 52 // system default installation folders. |
51 FilePath GetChromeFrameInstallPath(bool multi_install, bool system_install, | 53 FilePath GetChromeFrameInstallPath(bool multi_install, bool system_install, |
52 BrowserDistribution* dist); | 54 BrowserDistribution* dist); |
53 | 55 |
| 56 // Returns the app guid under which the current process receives updates from |
| 57 // Google Update. |
| 58 std::wstring GetAppGuidForUpdates(bool system_install); |
| 59 |
54 } // namespace installer | 60 } // namespace installer |
55 | 61 |
56 #endif // CHROME_INSTALLER_UTIL_HELPER_H_ | 62 #endif // CHROME_INSTALLER_UTIL_HELPER_H_ |
OLD | NEW |