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

Unified Diff: chrome/browser/chromeos/network_settings/onc_utils.cc

Issue 11415148: Adding error handling to ONC validation. (Closed) Base URL: http://git.chromium.org/chromium/src.git@extract_onc_certificate
Patch Set: Initial patch. Created 8 years, 1 month 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: chrome/browser/chromeos/network_settings/onc_utils.cc
diff --git a/chrome/browser/chromeos/network_settings/onc_utils.cc b/chrome/browser/chromeos/network_settings/onc_utils.cc
index 897d3ee56c8aa677edc135c1d6ceb99f5c74d26b..4685f7c5d5d9259904abec26374de74ef4cd6112 100644
--- a/chrome/browser/chromeos/network_settings/onc_utils.cc
+++ b/chrome/browser/chromeos/network_settings/onc_utils.cc
@@ -17,6 +17,10 @@
namespace chromeos {
namespace onc {
+const char kEmptyUnencryptedConfiguration[] =
+ "{\"Type\":\"UnencryptedConfiguration\",\"NetworkConfigurations\":[],"
+ "\"Certificates\":[]}";
+
scoped_ptr<base::DictionaryValue> ReadDictionaryFromJson(
const std::string& json,
std::string* error) {

Powered by Google App Engine
This is Rietveld 408576698