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

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: Created 3 years, 10 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
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // True if the mode supports installation at system-level. 95 // True if the mode supports installation at system-level.
96 bool supports_system_level() const { 96 bool supports_system_level() const {
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. 100 // True if the mode once supported multi-install.
101 bool supported_multi_install() const { 101 bool supported_multi_install() const {
102 return payload_->mode->supported_multi_install; 102 return payload_->mode->supported_multi_install;
103 } 103 }
104 104
105 // Returns the resource id of this mode's main application icon.
106 int32_t app_icon_resource_id() const {
107 return payload_->mode->app_icon_resource_id;
108 }
109
105 // The install's update channel, or an empty string if the brand does not 110 // The install's update channel, or an empty string if the brand does not
106 // integrate with Google Update. 111 // integrate with Google Update.
107 std::wstring channel() const { 112 std::wstring channel() const {
108 return std::wstring(payload_->channel, payload_->channel_length); 113 return std::wstring(payload_->channel, payload_->channel_length);
109 } 114 }
110 bool system_level() const { return payload_->system_level; } 115 bool system_level() const { return payload_->system_level; }
111 116
112 // Returns the path to the installation's ClientState registry key. This 117 // Returns the path to the installation's ClientState registry key. This
113 // registry key is used to hold various installation-related values, including 118 // registry key is used to hold various installation-related values, including
114 // an indication of consent for usage stats. 119 // an indication of consent for usage stats.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 } 180 }
176 181
177 private: 182 private:
178 std::wstring channel_; 183 std::wstring channel_;
179 Payload payload_ = Payload(); 184 Payload payload_ = Payload();
180 }; 185 };
181 186
182 } // namespace install_static 187 } // namespace install_static
183 188
184 #endif // CHROME_INSTALL_STATIC_INSTALL_DETAILS_H_ 189 #endif // CHROME_INSTALL_STATIC_INSTALL_DETAILS_H_
OLDNEW
« chrome/install_static/BUILD.gn ('K') | « chrome/install_static/install_constants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698