Index: chromeos/network/onc/onc_test_utils.cc |
diff --git a/chromeos/network/onc/onc_test_utils.cc b/chromeos/network/onc/onc_test_utils.cc |
index ffb18df88cdef0794727b1aec8d658973f1e3d83..d11f759c6727093704c22aad760cd04552c27b05 100644 |
--- a/chromeos/network/onc/onc_test_utils.cc |
+++ b/chromeos/network/onc/onc_test_utils.cc |
@@ -9,6 +9,7 @@ |
#include "base/files/file_path.h" |
#include "base/files/file_util.h" |
#include "base/json/json_file_value_serializer.h" |
+#include "base/json/json_reader.h" |
#include "base/logging.h" |
#include "base/values.h" |
#include "chromeos/chromeos_test_utils.h" |
@@ -50,8 +51,8 @@ std::unique_ptr<base::DictionaryValue> ReadTestDictionary( |
return dict; |
} |
- JSONFileValueDeserializer deserializer(path); |
- deserializer.set_allow_trailing_comma(true); |
+ JSONFileValueDeserializer deserializer(path, |
+ base::JSON_ALLOW_TRAILING_COMMAS); |
std::string error_message; |
std::unique_ptr<base::Value> content = |