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

Unified Diff: chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job.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: fix platform specific stuff 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/remote_commands/device_command_screenshot_job.cc
diff --git a/chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job.cc b/chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job.cc
index 3a03d6cfdf60c6314ba8170f5544b71c751d5694..67efaaca122edc7875445503729cef9cb1c74993 100644
--- a/chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job.cc
+++ b/chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job.cc
@@ -81,8 +81,8 @@ class DeviceCommandScreenshotJob::Payload
DeviceCommandScreenshotJob::Payload::Payload(ResultCode result_code) {
base::DictionaryValue root_dict;
if (result_code != SUCCESS)
- root_dict.Set(kResultFieldName, new base::FundamentalValue(result_code));
- base::JSONWriter::Write(&root_dict, &payload_);
+ root_dict.SetInteger(kResultFieldName, result_code);
+ base::JSONWriter::Write(root_dict, &payload_);
}
scoped_ptr<std::string> DeviceCommandScreenshotJob::Payload::Serialize() {

Powered by Google App Engine
This is Rietveld 408576698