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

Unified Diff: base/win/event_trace_provider.cc

Issue 9584017: New test infrastructure for producing verbose logs in failing tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moved logging_win to logging/win so regular filename_rules work Created 8 years, 9 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 | « base/logging_win.h ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/event_trace_provider.cc
diff --git a/base/win/event_trace_provider.cc b/base/win/event_trace_provider.cc
index 332fac32b50003e09008c59f2dd95ff223b7200f..8fcf67d3d701c1765f99aec66b028829181772d7 100644
--- a/base/win/event_trace_provider.cc
+++ b/base/win/event_trace_provider.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
@@ -84,12 +84,12 @@ ULONG EtwTraceProvider::Register() {
}
ULONG EtwTraceProvider::Unregister() {
+ // If a session is active, notify subclasses that it's going away.
+ if (session_handle_ != NULL)
+ DisableEvents();
+
ULONG ret = ::UnregisterTraceGuids(registration_handle_);
- // Make sure we don't log anything from here on.
- enable_level_ = 0;
- enable_flags_ = 0;
- session_handle_ = NULL;
registration_handle_ = NULL;
return ret;
« no previous file with comments | « base/logging_win.h ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698