From af6741fe8d0ec47e5d7860e6f3812d2f15212db0 Mon Sep 17 00:00:00 2001 From: "tommi@chromium.org" Date: Tue, 16 Nov 2010 17:42:27 +0000 Subject: Enable ETW logging in setup. BUG=none TEST=Should be no change Review URL: http://codereview.chromium.org/5049001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66286 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/installer/util/logging_installer.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'chrome/installer') diff --git a/chrome/installer/util/logging_installer.cc b/chrome/installer/util/logging_installer.cc index 33cf342..6842832 100644 --- a/chrome/installer/util/logging_installer.cc +++ b/chrome/installer/util/logging_installer.cc @@ -16,6 +16,10 @@ #include "chrome/installer/util/master_preferences_constants.h" #include "chrome/installer/util/util_constants.h" +// {93BCE0BF-3FAF-43b1-9E28-BEB6FAB5ECE7} +static const GUID kSetupTraceProvider = { 0x93bce0bf, 0x3faf, 0x43b1, + { 0x9e, 0x28, 0xbe, 0xb6, 0xfa, 0xb5, 0xec, 0xe7 } }; + namespace installer { // This should be true for the period between the end of @@ -45,6 +49,9 @@ void InitInstallerLogging(const installer_util::MasterPreferences& prefs) { logging::SetMinLogLevel(logging::LOG_ERROR); } + // Enable ETW logging. + logging::LogEventProvider::Initialize(kSetupTraceProvider); + installer_logging_ = true; } -- cgit v1.1