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

Unified Diff: chrome/common/extensions/api/extension_api.cc

Issue 10035042: Rewrite base::JSONReader to be 35-40% faster, depending on the input string. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' 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: chrome/common/extensions/api/extension_api.cc
diff --git a/chrome/common/extensions/api/extension_api.cc b/chrome/common/extensions/api/extension_api.cc
index bdccc9b7ce2347bd9461f1f56408229147f0a591..53162f7b69c5c6dc2b7fdb36f538dcf2219a6ca2 100644
--- a/chrome/common/extensions/api/extension_api.cc
+++ b/chrome/common/extensions/api/extension_api.cc
@@ -69,7 +69,7 @@ scoped_ptr<ListValue> LoadSchemaList(const base::StringPiece& schema) {
scoped_ptr<Value> result(
base::JSONReader::ReadAndReturnError(
schema.as_string(),
- base::JSON_PARSE_RFC, // options
+ base::JSON_PARSE_RFC | base::JSON_DETACHABLE_CHILDREN, // options
NULL, // error code
&error_message));
CHECK(result.get()) << error_message;

Powered by Google App Engine
This is Rietveld 408576698