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

Unified Diff: mojo/common/values_struct_traits.cc

Issue 2636113002: Change base::DictionaryValue mojo deserialization to not expand paths. (Closed)
Patch Set: Created 3 years, 11 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 | « mojo/common/common_custom_types_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/common/values_struct_traits.cc
diff --git a/mojo/common/values_struct_traits.cc b/mojo/common/values_struct_traits.cc
index 2aece79e5aca8b4731d8d3f72f6148d7cc4d8d85..d085906e86c6d55c036f6aafa865c46942de9f27 100644
--- a/mojo/common/values_struct_traits.cc
+++ b/mojo/common/values_struct_traits.cc
@@ -39,7 +39,7 @@ bool StructTraits<common::mojom::DictionaryValueDataView,
if (!view.keys().Read(i, &key) || !view.values().Read(i, &value))
return false;
- dictionary_value->Set(key, std::move(value));
+ dictionary_value->SetWithoutPathExpansion(key, std::move(value));
}
*value_out = std::move(dictionary_value);
return true;
« no previous file with comments | « mojo/common/common_custom_types_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698