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

Unified Diff: net/base/transport_security_state.cc

Issue 9960077: Modify the base::JSONReader interface to take a set of options rather than a boolean flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 8 months 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: net/base/transport_security_state.cc
diff --git a/net/base/transport_security_state.cc b/net/base/transport_security_state.cc
index 7bc0a31310403fa49f2150e1feff7496ecaa4921..93b025436d01d189c5b08ee318ddcf91ea59a02a 100644
--- a/net/base/transport_security_state.cc
+++ b/net/base/transport_security_state.cc
@@ -917,8 +917,7 @@ bool TransportSecurityState::Deserialise(
const std::string& input,
bool* dirty,
std::map<std::string, DomainState>* out) {
- scoped_ptr<Value> value(
- base::JSONReader::Read(input, false /* do not allow trailing commas */));
+ scoped_ptr<Value> value(base::JSONReader::Read(input));
if (!value.get() || !value->IsType(Value::TYPE_DICTIONARY))
return false;

Powered by Google App Engine
This is Rietveld 408576698