| Index: chromeos/network/onc/onc_signature.cc
|
| diff --git a/chromeos/network/onc/onc_signature.cc b/chromeos/network/onc/onc_signature.cc
|
| index 942fbdaaf0160fd0a2d296c8ec03b0f62c91464f..ba5315476c0758e8c2e51b1278e534034dcf045d 100644
|
| --- a/chromeos/network/onc/onc_signature.cc
|
| +++ b/chromeos/network/onc/onc_signature.cc
|
| @@ -386,8 +386,9 @@ const OncValueSignature kToplevelConfigurationSignature = {
|
| Value::TYPE_DICTIONARY, toplevel_configuration_fields, NULL
|
| };
|
|
|
| -const OncFieldSignature* GetFieldSignature(const OncValueSignature& signature,
|
| - const std::string& onc_field_name) {
|
| +const OncFieldSignature* GetOncFieldSignature(
|
| + const OncValueSignature& signature,
|
| + const std::string& onc_field_name) {
|
| if (!signature.fields)
|
| return NULL;
|
| for (const OncFieldSignature* field_signature = signature.fields;
|
| @@ -398,5 +399,19 @@ const OncFieldSignature* GetFieldSignature(const OncValueSignature& signature,
|
| return NULL;
|
| }
|
|
|
| +const OncFieldSignature* GetShillFieldSignature(
|
| + const OncValueSignature& signature,
|
| + const std::string& shill_property_name) {
|
| + if (!signature.fields)
|
| + return NULL;
|
| + for (const OncFieldSignature* field_signature = signature.fields;
|
| + field_signature->onc_field_name != NULL; ++field_signature) {
|
| + if (shill_property_name == field_signature->shill_property_name)
|
| + return field_signature;
|
| + }
|
| + return NULL;
|
| +}
|
| +
|
| +
|
| } // namespace onc
|
| } // namespace chromeos
|
|
|