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

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: tweaked comments 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
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();
robertshield 2012/03/09 16:58:04 if session_handle_ is null, the level and flags no
grt (UTC plus 2) 2012/03/09 17:55:25 I don't see a way for session_handle_ to be NULL a
+
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;

Powered by Google App Engine
This is Rietveld 408576698