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

Unified Diff: base/json/json_parser.cc

Issue 2278723003: Use StringPiece more in base::Value interfaces. (Closed)
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | base/values.h » ('j') | base/values.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/json/json_parser.cc
diff --git a/base/json/json_parser.cc b/base/json/json_parser.cc
index d97eccc96c999ded03c1760bb1a7b256434dfe36..36e9dcac736938c2e568fbe00c66dea8803f80b0 100644
--- a/base/json/json_parser.cc
+++ b/base/json/json_parser.cc
@@ -61,7 +61,7 @@ class DictionaryHiddenRootValue : public DictionaryValue {
// Not overriding DictionaryValue::Remove because it just calls through to
// the method below.
- bool RemoveWithoutPathExpansion(const std::string& key,
+ bool RemoveWithoutPathExpansion(StringPiece key,
std::unique_ptr<Value>* out) override {
// If the caller won't take ownership of the removed value, just call up.
if (!out)
« no previous file with comments | « no previous file | base/values.h » ('j') | base/values.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698