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

Unified Diff: chromeos/network/onc/onc_validator.h

Issue 11428078: Rejecting networks/certificates individually from ONC during validation. (Closed) Base URL: http://git.chromium.org/chromium/src.git@add_error_handling_to_validator
Patch Set: Rebased. Created 8 years 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 side-by-side diff with in-line comments
Download patch
Index: chromeos/network/onc/onc_validator.h
diff --git a/chromeos/network/onc/onc_validator.h b/chromeos/network/onc/onc_validator.h
index 23ad30216a314be97ab1b8f8e96f28837683a3ab..3108769584f01a45b0193c332256b5dd418deafc 100644
--- a/chromeos/network/onc/onc_validator.h
+++ b/chromeos/network/onc/onc_validator.h
@@ -104,6 +104,13 @@ class CHROMEOS_EXPORT Validator : public Mapper {
bool* found_unknown_field,
bool* error) OVERRIDE;
+ // Ignores nested errors in NetworkConfigurations and Certificates, otherwise
+ // like |Mapper::MapArray|.
+ virtual scoped_ptr<base::ListValue> MapArray(
+ const OncValueSignature& array_signature,
+ const base::ListValue& onc_array,
+ bool* nested_error) OVERRIDE;
+
// Pushes/pops the index to |path_|, otherwise like |Mapper::MapEntry|.
virtual scoped_ptr<base::Value> MapEntry(
int index,
« no previous file with comments | « no previous file | chromeos/network/onc/onc_validator.cc » ('j') | chromeos/network/onc/onc_validator_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698