Index: chrome/common/logging_chrome.cc |
diff --git a/chrome/common/logging_chrome.cc b/chrome/common/logging_chrome.cc |
index 183d4e84792abcfdcc0c4764a51600653d4f6504..e9e51b130ea2b85aa63275000f81fbe022f939cd 100644 |
--- a/chrome/common/logging_chrome.cc |
+++ b/chrome/common/logging_chrome.cc |
@@ -61,6 +61,8 @@ |
#if defined(OS_WIN) |
#include <initguid.h> |
#include "base/logging_win.h" |
+#include "base/syslog_logging.h" |
+#include "chrome/install_static/install_details.h" |
#endif |
namespace { |
@@ -359,6 +361,10 @@ void InitChromeLogging(const base::CommandLine& command_line, |
#if defined(OS_WIN) |
// Enable trace control and transport through event tracing for Windows. |
logging::LogEventProvider::Initialize(kChromeTraceProviderName); |
+ |
+ // Enable logging to the Windows Event Log. |
+ logging::SetEventSourceName(base::UTF16ToASCII( |
+ install_static::InstallDetails::Get().install_full_name())); |
#endif |
base::StatisticsRecorder::InitLogOnShutdown(); |