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

Unified Diff: chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc

Issue 2412963003: Replace CHROMEOS_SYSLOG logs with SYSLOG logs so remote command related (Closed)
Patch Set: Created 4 years, 2 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 | chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc
diff --git a/chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc b/chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc
index 0519bf751233add9f9e5bbd5bf0f5c1da4149108..6e777b0bc45efb75259e83d4f37dfa413e9aba38 100644
--- a/chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc
+++ b/chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc
@@ -7,11 +7,11 @@
#include <algorithm>
#include "base/bind.h"
-#include "base/chromeos/logging.h"
#include "base/location.h"
#include "base/logging.h"
#include "base/single_thread_task_runner.h"
#include "base/sys_info.h"
+#include "base/syslog_logging.h"
#include "base/threading/thread_task_runner_handle.h"
#include "base/time/time.h"
#include "chromeos/dbus/power_manager_client.h"
@@ -49,7 +49,7 @@ bool DeviceCommandRebootJob::IsExpired(base::TimeTicks now) {
void DeviceCommandRebootJob::RunImpl(
const CallbackWithResult& succeeded_callback,
const CallbackWithResult& failed_callback) {
- CHROMEOS_SYSLOG(WARNING) << "Running reboot command.";
+ SYSLOG(INFO) << "Running reboot command.";
Andrew T Wilson (Slow) 2016/10/14 12:41:14 Should this really be INFO? Doesn't this mean this
Marton Hunyady 2016/10/14 12:47:58 According to https://cs.chromium.org/chromium/src/
// Determines the time delta between the command having been issued and the
// boot time of the system.
@@ -60,14 +60,14 @@ void DeviceCommandRebootJob::RunImpl(
// server that the reboot succeeded. Otherwise, the reboot must still be
// performed and we invoke it.
if (delta > base::TimeDelta()) {
- CHROMEOS_SYSLOG(WARNING) << "Ignoring reboot command issued " << delta
- << " before current boot time";
+ SYSLOG(WARNING) << "Ignoring reboot command issued " << delta
+ << " before current boot time";
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::Bind(succeeded_callback, nullptr));
return;
}
- CHROMEOS_SYSLOG(WARNING) << "Rebooting immediately.";
+ SYSLOG(INFO) << "Rebooting immediately.";
power_manager_client_->RequestRestart();
}
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698