OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 extends generic BrowserDistribution class to declare Google Chrome | 5 // This file extends generic BrowserDistribution class to declare Google Chrome |
6 // specific implementation. | 6 // specific implementation. |
7 | 7 |
8 #ifndef CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ | 8 #ifndef CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ |
9 #define CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ | 9 #define CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 const std::wstring& distribution_data); | 31 const std::wstring& distribution_data); |
32 | 32 |
33 virtual std::wstring GetAppGuid(); | 33 virtual std::wstring GetAppGuid(); |
34 | 34 |
35 virtual std::wstring GetApplicationName(); | 35 virtual std::wstring GetApplicationName(); |
36 | 36 |
37 virtual std::wstring GetAlternateApplicationName(); | 37 virtual std::wstring GetAlternateApplicationName(); |
38 | 38 |
39 virtual std::wstring GetInstallSubDir(); | 39 virtual std::wstring GetInstallSubDir(); |
40 | 40 |
| 41 // This method generates the new value for Google Update "ap" key for Chrome |
| 42 // based on whether we are doing incremental install (or not) and whether |
| 43 // the install succeeded. |
| 44 // - If install worked, remove the magic string (if present). |
| 45 // - If incremental installer failed, append a magic string (if |
| 46 // not present already). |
| 47 // - If full installer failed, still remove this magic |
| 48 // string (if it is present already). |
| 49 // |
| 50 // diff_install: tells whether this is incremental install or not. |
| 51 // install_status: if 0, means installation was successful. |
| 52 // value: current value of Google Update "ap" key. |
| 53 std::wstring GetNewGoogleUpdateApKey(bool diff_install, |
| 54 installer_util::InstallStatus status, const std::wstring& value); |
| 55 |
41 virtual std::wstring GetPublisherName(); | 56 virtual std::wstring GetPublisherName(); |
42 | 57 |
43 virtual std::wstring GetAppDescription(); | 58 virtual std::wstring GetAppDescription(); |
44 | 59 |
45 virtual std::string GetSafeBrowsingName(); | 60 virtual std::string GetSafeBrowsingName(); |
46 | 61 |
47 virtual std::wstring GetStateKey(); | 62 virtual std::wstring GetStateKey(); |
48 | 63 |
49 virtual std::wstring GetStateMediumKey(); | 64 virtual std::wstring GetStateMediumKey(); |
50 | 65 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 // Returns true if at least one uninstall metric was found in | 120 // Returns true if at least one uninstall metric was found in |
106 // uninstall_metrics_dict, false otherwise. | 121 // uninstall_metrics_dict, false otherwise. |
107 virtual bool BuildUninstallMetricsString( | 122 virtual bool BuildUninstallMetricsString( |
108 DictionaryValue* uninstall_metrics_dict, std::wstring* metrics); | 123 DictionaryValue* uninstall_metrics_dict, std::wstring* metrics); |
109 | 124 |
110 // The product ID for Google Update. | 125 // The product ID for Google Update. |
111 std::wstring product_guid_; | 126 std::wstring product_guid_; |
112 }; | 127 }; |
113 | 128 |
114 #endif // CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ | 129 #endif // CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ |
OLD | NEW |