namespace {
const char kLightUserKey[] = "manifest.light-user";
+const char kLightUserSupportKey[] = "@support";
const char kLightUserSwitchModeKey[] = "@switch-mode";
void ParseLightUserAndStore(
const parser::DictionaryValue& light_user_dict,
LightUserInfo* light_user) {
+ std::string support;
+ light_user_dict.GetString(kLightUserSupportKey, &support);
+ light_user->set_support(support);
+
std::string switch_mode;
light_user_dict.GetString(kLightUserSwitchModeKey, &switch_mode);
light_user->set_switch_mode(switch_mode);
* @param key string
*/
static std::string Key();
+ /**
+ * @brief set_support sets support
+ * @param support
+ */
+ void set_support(std::string support) {
+ support_ = std::move(support);
+ }
+ /**
+ * @brief support
+ * @return support string
+ */
+ const std::string& support() const {
+ return support_;
+ }
/**
* @brief set_switch_mode sets switch_mode
* @param switch_mode
}
private:
+ std::string support_;
std::string switch_mode_;
};