OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/logging_win.h" | 5 #include "base/logging_win.h" |
6 #include "base/atomicops.h" | |
7 #include "base/singleton.h" | 6 #include "base/singleton.h" |
8 #include <initguid.h> // NOLINT | 7 #include <initguid.h> // NOLINT |
9 | 8 |
10 namespace { | 9 namespace { |
11 | 10 |
12 typedef StaticMemorySingletonTraits<logging::LogEventProvider> | 11 typedef StaticMemorySingletonTraits<logging::LogEventProvider> |
13 LogEventSingletonTraits; | 12 LogEventSingletonTraits; |
14 Singleton<logging::LogEventProvider, LogEventSingletonTraits> log_provider; | 13 Singleton<logging::LogEventProvider, LogEventSingletonTraits> log_provider; |
15 | 14 |
16 } // namespace | 15 } // namespace |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 break; | 112 break; |
114 } | 113 } |
115 } | 114 } |
116 | 115 |
117 void LogEventProvider::OnEventsDisabled() { | 116 void LogEventProvider::OnEventsDisabled() { |
118 // Restore the old log level. | 117 // Restore the old log level. |
119 SetMinLogLevel(old_log_level_); | 118 SetMinLogLevel(old_log_level_); |
120 } | 119 } |
121 | 120 |
122 } // namespace logging | 121 } // namespace logging |
OLD | NEW |