| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_INSTALL_STATIC_INSTALL_DETAILS_H_ | 5 #ifndef CHROME_INSTALL_STATIC_INSTALL_DETAILS_H_ |
| 6 #define CHROME_INSTALL_STATIC_INSTALL_DETAILS_H_ | 6 #define CHROME_INSTALL_STATIC_INSTALL_DETAILS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 return payload_->mode->supports_system_level; | 97 return payload_->mode->supports_system_level; |
| 98 } | 98 } |
| 99 | 99 |
| 100 // True if the mode once supported multi-install, a legacy mode of | 100 // True if the mode once supported multi-install, a legacy mode of |
| 101 // installation. This exists to provide migration and cleanup for older | 101 // installation. This exists to provide migration and cleanup for older |
| 102 // installs. | 102 // installs. |
| 103 bool supported_multi_install() const { | 103 bool supported_multi_install() const { |
| 104 return payload_->mode->supported_multi_install; | 104 return payload_->mode->supported_multi_install; |
| 105 } | 105 } |
| 106 | 106 |
| 107 // Returns the resource id of this mode's main application icon. |
| 108 int32_t app_icon_resource_id() const { |
| 109 return payload_->mode->app_icon_resource_id; |
| 110 } |
| 111 |
| 107 // The install's update channel, or an empty string if the brand does not | 112 // The install's update channel, or an empty string if the brand does not |
| 108 // integrate with Google Update. | 113 // integrate with Google Update. |
| 109 std::wstring channel() const { | 114 std::wstring channel() const { |
| 110 return std::wstring(payload_->channel, payload_->channel_length); | 115 return std::wstring(payload_->channel, payload_->channel_length); |
| 111 } | 116 } |
| 112 bool system_level() const { return payload_->system_level; } | 117 bool system_level() const { return payload_->system_level; } |
| 113 | 118 |
| 114 // Returns the path to the installation's ClientState registry key. This | 119 // Returns the path to the installation's ClientState registry key. This |
| 115 // registry key is used to hold various installation-related values, including | 120 // registry key is used to hold various installation-related values, including |
| 116 // an indication of consent for usage stats. | 121 // an indication of consent for usage stats. |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 } | 182 } |
| 178 | 183 |
| 179 private: | 184 private: |
| 180 std::wstring channel_; | 185 std::wstring channel_; |
| 181 Payload payload_ = Payload(); | 186 Payload payload_ = Payload(); |
| 182 }; | 187 }; |
| 183 | 188 |
| 184 } // namespace install_static | 189 } // namespace install_static |
| 185 | 190 |
| 186 #endif // CHROME_INSTALL_STATIC_INSTALL_DETAILS_H_ | 191 #endif // CHROME_INSTALL_STATIC_INSTALL_DETAILS_H_ |
| OLD | NEW |