error->append(UTF8ToUTF16("'ResourceType': expected \"main_frame\" or \"sub_frame\" or \"stylesheet\" or \"script\" or \"image\" or \"font\" or \"object\" or \"xmlhttprequest\" or \"ping\" or \"csp_report\" or \"media\" or \"websocket\" or \"other\", got \"" + resource_type_as_string + "\""));
error->append(UTF8ToUTF16("'ResourceType': expected \"main_frame\" or \"sub_frame\" or \"stylesheet\" or \"script\" or \"image\" or \"font\" or \"object\" or \"xmlhttprequest\" or \"ping\" or \"csp_report\" or \"media\" or \"websocket\" or \"other\", got \"" + resource_type_as_string + "\""));
return false;
return false;
}
}
out->excluded_resource_types->push_back(tmp);
out->excluded_resource_types->push_back(tmp);
}
}
}
}
}
}
}
}
keys.insert("domainType");
const base::Value* domain_type_value = NULL;
const base::Value* domain_type_value = NULL;
if (dict->GetWithoutPathExpansion("domainType", &domain_type_value)) {
if (dict->GetWithoutPathExpansion("domainType", &domain_type_value)) {
{
{
std::string domain_type_as_string;
std::string domain_type_as_string;
if (!domain_type_value->GetAsString(&domain_type_as_string)) {
if (!domain_type_value->GetAsString(&domain_type_as_string)) {