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

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

Issue 759663004: ONC: add support for non-utf-8 SSIDs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed issues Created 6 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: chromeos/network/onc/onc_normalizer.h
diff --git a/chromeos/network/onc/onc_normalizer.h b/chromeos/network/onc/onc_normalizer.h
index 72688799ab8941d9c6c9ae720778215c3890ce13..9c97d32099032fdc8b9612e66bca78edcb2da4b0 100644
--- a/chromeos/network/onc/onc_normalizer.h
+++ b/chromeos/network/onc/onc_normalizer.h
@@ -24,7 +24,10 @@ class CHROMEOS_EXPORT Normalizer : public Mapper {
// type is "Ethernet". If |remove_recommended_fields| is true, kRecommended
// arrays are removed (the array itself and not the field names listed
// there). |object_signature| must point to one of the signatures in
- // |onc_signature.h|.
+ // |onc_signature.h|. For configurations of type "WiFi", if the "SSID" field
+ // is set, but the field "HexSSID" is not, the contents of the "SSID" field is
+ // converted to UTF-8 encoding, a hex representation of the byte sequence is
+ // created and stored in the field "HexSSID".
scoped_ptr<base::DictionaryValue> NormalizeObject(
const OncValueSignature* object_signature,
const base::DictionaryValue& onc_object);
« no previous file with comments | « chromeos/network/managed_network_configuration_handler_impl.cc ('k') | chromeos/network/onc/onc_normalizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698