OLD | NEW |
1 // Copyright (c) 2011 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 #ifndef CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ |
6 #define CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ | 6 #define CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/string16.h" |
12 #include "chrome/installer/util/util_constants.h" | 13 #include "chrome/installer/util/util_constants.h" |
13 | 14 |
14 class BrowserDistribution; | 15 class BrowserDistribution; |
15 | 16 |
16 namespace installer { | 17 namespace installer { |
17 class ChannelInfo; | 18 class ChannelInfo; |
18 class InstallationState; | 19 class InstallationState; |
19 } | 20 } |
20 | 21 |
21 // This class provides accessors to the Google Update 'ClientState' information | 22 // This class provides accessors to the Google Update 'ClientState' information |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 // "unknown" if unknown. This value will not be modified by "-m" for a | 117 // "unknown" if unknown. This value will not be modified by "-m" for a |
117 // multi-install. | 118 // multi-install. |
118 static std::wstring GetChromeChannel(bool system_install); | 119 static std::wstring GetChromeChannel(bool system_install); |
119 | 120 |
120 // Return a human readable modifier for the version string, e.g. | 121 // Return a human readable modifier for the version string, e.g. |
121 // the channel (dev, beta, stable). Returns true if this operation succeeded, | 122 // the channel (dev, beta, stable). Returns true if this operation succeeded, |
122 // on success, channel contains one of "", "unknown", "dev" or "beta" (unless | 123 // on success, channel contains one of "", "unknown", "dev" or "beta" (unless |
123 // it is a multi-install product, in which case it will return "m", | 124 // it is a multi-install product, in which case it will return "m", |
124 // "unknown-m", "dev-m", or "beta-m"). | 125 // "unknown-m", "dev-m", or "beta-m"). |
125 static bool GetChromeChannelAndModifiers(bool system_install, | 126 static bool GetChromeChannelAndModifiers(bool system_install, |
126 std::wstring* channel); | 127 string16* channel); |
127 | 128 |
128 // This method changes the Google Update "ap" value to move the installation | 129 // This method changes the Google Update "ap" value to move the installation |
129 // on to or off of one of the recovery channels. | 130 // on to or off of one of the recovery channels. |
130 // - If incremental installer fails we append a magic string ("-full"), if | 131 // - If incremental installer fails we append a magic string ("-full"), if |
131 // it is not present already, so that Google Update server next time will send | 132 // it is not present already, so that Google Update server next time will send |
132 // full installer to update Chrome on the local machine | 133 // full installer to update Chrome on the local machine |
133 // - If we are currently running full installer, we remove this magic | 134 // - If we are currently running full installer, we remove this magic |
134 // string (if it is present) regardless of whether installer failed or not. | 135 // string (if it is present) regardless of whether installer failed or not. |
135 // There is no fall-back for full installer :) | 136 // There is no fall-back for full installer :) |
136 // - Unconditionally remove "-multifail" since we haven't crashed. | 137 // - Unconditionally remove "-multifail" since we haven't crashed. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 // Group Policy settings. |is_overridden|, if non-NULL, is populated with | 179 // Group Policy settings. |is_overridden|, if non-NULL, is populated with |
179 // true if an app-specific policy override is in force, or false otherwise. | 180 // true if an app-specific policy override is in force, or false otherwise. |
180 static UpdatePolicy GetAppUpdatePolicy(const std::wstring& app_guid, | 181 static UpdatePolicy GetAppUpdatePolicy(const std::wstring& app_guid, |
181 bool* is_overridden); | 182 bool* is_overridden); |
182 | 183 |
183 private: | 184 private: |
184 DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings); | 185 DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings); |
185 }; | 186 }; |
186 | 187 |
187 #endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ | 188 #endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ |
OLD | NEW |