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

Unified Diff: components/policy/core/common/policy_test_utils.cc

Issue 1131113004: Convert JsonWriter::Write to taking a const ref for the in-param (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another rebase Created 5 years, 7 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: components/policy/core/common/policy_test_utils.cc
diff --git a/components/policy/core/common/policy_test_utils.cc b/components/policy/core/common/policy_test_utils.cc
index 79180e41c288cd34c837a1daf7ece3f486ee9bd0..e9116b768769cb49e4e449367646d2239ce72881 100644
--- a/components/policy/core/common/policy_test_utils.cc
+++ b/components/policy/core/common/policy_test_utils.cc
@@ -222,9 +222,8 @@ std::ostream& operator<<(std::ostream& os, const policy::PolicyMap& policies) {
std::ostream& operator<<(std::ostream& os, const policy::PolicyMap::Entry& e) {
std::string value;
- base::JSONWriter::WriteWithOptions(e.value,
- base::JSONWriter::OPTIONS_PRETTY_PRINT,
- &value);
+ base::JSONWriter::WriteWithOptions(
+ *e.value, base::JSONWriter::OPTIONS_PRETTY_PRINT, &value);
os << "{" << std::endl
<< " \"level\": " << e.level << "," << std::endl
<< " \"scope\": " << e.scope << "," << std::endl
« no previous file with comments | « components/policy/core/common/policy_loader_win_unittest.cc ('k') | components/printing/renderer/print_web_view_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698