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

Unified Diff: components/device_event_log/device_event_log.cc

Issue 947663002: Log device/hid messages to chrome://device-log. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/device_event_log/device_event_log.cc
diff --git a/components/device_event_log/device_event_log.cc b/components/device_event_log/device_event_log.cc
index 0d52b6a3535df6878f333e672a1cf2e3045dfb71..8e720c0f31d2aa56923a319b6e4f73f28d50ab6d 100644
--- a/components/device_event_log/device_event_log.cc
+++ b/components/device_event_log/device_event_log.cc
@@ -84,6 +84,19 @@ DeviceEventLogInstance::~DeviceEventLogInstance() {
device_event_log::AddEntry(file_, line_, type_, level_, stream_.str());
}
+DeviceEventSystemErrorLogInstance::DeviceEventSystemErrorLogInstance(
+ const char* file,
+ int line,
+ device_event_log::LogType type,
+ device_event_log::LogLevel level,
+ logging::SystemErrorCode err)
+ : err_(err), log_instance_(file, line, type, level) {
+}
+
+DeviceEventSystemErrorLogInstance::~DeviceEventSystemErrorLogInstance() {
+ stream() << ": " << ::logging::SystemErrorCodeToString(err_);
+}
+
ScopedDeviceLogIfSlow::ScopedDeviceLogIfSlow(LogType type,
const char* file,
const std::string& name)

Powered by Google App Engine
This is Rietveld 408576698