diff options
author | siggi@chromium.org <siggi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-25 21:32:26 +0000 |
---|---|---|
committer | siggi@chromium.org <siggi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-25 21:32:26 +0000 |
commit | 5ee34133e8c2fc8f5fa25f196ee8df69edceab52 (patch) | |
tree | 32a00af67344c499b3bb654345b3e2ff003e4c4a /chrome_frame | |
parent | 66aedc9bb1480ac6e9a7cce80f55d90359fb55d4 (diff) | |
download | chromium_src-5ee34133e8c2fc8f5fa25f196ee8df69edceab52.zip chromium_src-5ee34133e8c2fc8f5fa25f196ee8df69edceab52.tar.gz chromium_src-5ee34133e8c2fc8f5fa25f196ee8df69edceab52.tar.bz2 |
Enable ETW logging in Chrome Frame.
BUG=0
TEST=none
Review URL: http://codereview.chromium.org/437064
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33122 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame')
-rw-r--r-- | chrome_frame/chrome_tab.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome_frame/chrome_tab.cc b/chrome_frame/chrome_tab.cc index 39436f4..0783a61 100644 --- a/chrome_frame/chrome_tab.cc +++ b/chrome_frame/chrome_tab.cc @@ -14,6 +14,7 @@ #include "base/file_util.h" #include "base/file_version_info.h" #include "base/logging.h" +#include "base/logging_win.h" #include "base/path_service.h" #include "base/registry.h" #include "base/string_piece.h" @@ -38,6 +39,12 @@ const wchar_t kInternetSettings[] = const wchar_t kBhoNoLoadExplorerValue[] = L"NoExplorer"; +// {0562BFC3-2550-45b4-BD8E-A310583D3A6F} +static const GUID kChromeFrameProvider = + { 0x562bfc3, 0x2550, 0x45b4, + { 0xbd, 0x8e, 0xa3, 0x10, 0x58, 0x3d, 0x3a, 0x6f } }; + + class ChromeTabModule : public AtlPerUserModule<CAtlDllModuleT<ChromeTabModule> > { public: @@ -131,6 +138,8 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE instance, InitializeCrashReporting(); logging::InitLogging(NULL, logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG, logging::LOCK_LOG_FILE, logging::DELETE_OLD_LOG_FILE); + // Enable ETW logging. + logging::LogEventProvider::Initialize(kChromeFrameProvider); } else if (reason == DLL_PROCESS_DETACH) { g_patch_helper.UnpatchIfNeeded(); delete g_exit_manager; |