Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(530)

Side by Side Diff: chrome/install_static/install_details.h

Issue 2689233005: Move brand- and mode-specific app icon resource id into InstallConstants. (Closed)
Patch Set: sync to position 453103 Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/install_static/install_constants.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/install_static/install_constants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698