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

Unified Diff: chrome/browser/chromeos/policy/login_policy_test_base.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: chrome/browser/chromeos/policy/login_policy_test_base.cc
diff --git a/chrome/browser/chromeos/policy/login_policy_test_base.cc b/chrome/browser/chromeos/policy/login_policy_test_base.cc
index 710b0bdae8a629f9ff90d67e3596d69426e63e56..7fb6adac12b75160a4d9b39c8850ab8da2bf540b 100644
--- a/chrome/browser/chromeos/policy/login_policy_test_base.cc
+++ b/chrome/browser/chromeos/policy/login_policy_test_base.cc
@@ -54,10 +54,10 @@ std::string GetPolicy(scoped_ptr<base::DictionaryValue> mandatory,
root_dict.SetString("policy_user", account);
root_dict.SetInteger("current_key_index", 0);
- std::string jsonPolicy;
+ std::string json_policy;
base::JSONWriter::WriteWithOptions(
- &root_dict, base::JSONWriter::OPTIONS_PRETTY_PRINT, &jsonPolicy);
- return jsonPolicy;
+ root_dict, base::JSONWriter::OPTIONS_PRETTY_PRINT, &json_policy);
+ return json_policy;
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698