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

Side by Side Diff: base/logging_win.cc

Issue 331143007: Remove the LOG_ERROR_REPORT log severity level. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missed a SetLogReportHandler; also removed the --silent-dump-on-dcheck flag Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/logging_unittest.cc ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/memory/singleton.h" 6 #include "base/memory/singleton.h"
7 #include <initguid.h> // NOLINT 7 #include <initguid.h> // NOLINT
8 8
9 namespace logging { 9 namespace logging {
10 10
(...skipping 19 matching lines...) Expand all
30 // Convert the log severity to the most appropriate ETW trace level. 30 // Convert the log severity to the most appropriate ETW trace level.
31 if (severity >= 0) { 31 if (severity >= 0) {
32 switch (severity) { 32 switch (severity) {
33 case LOG_INFO: 33 case LOG_INFO:
34 level = TRACE_LEVEL_INFORMATION; 34 level = TRACE_LEVEL_INFORMATION;
35 break; 35 break;
36 case LOG_WARNING: 36 case LOG_WARNING:
37 level = TRACE_LEVEL_WARNING; 37 level = TRACE_LEVEL_WARNING;
38 break; 38 break;
39 case LOG_ERROR: 39 case LOG_ERROR:
40 case LOG_ERROR_REPORT:
41 level = TRACE_LEVEL_ERROR; 40 level = TRACE_LEVEL_ERROR;
42 break; 41 break;
43 case LOG_FATAL: 42 case LOG_FATAL:
44 level = TRACE_LEVEL_FATAL; 43 level = TRACE_LEVEL_FATAL;
45 break; 44 break;
46 } 45 }
47 } else { // severity < 0 is VLOG verbosity levels. 46 } else { // severity < 0 is VLOG verbosity levels.
48 level = TRACE_LEVEL_INFORMATION - severity; 47 level = TRACE_LEVEL_INFORMATION - severity;
49 } 48 }
50 49
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 SetMinLogLevel(TRACE_LEVEL_INFORMATION - level); 129 SetMinLogLevel(TRACE_LEVEL_INFORMATION - level);
131 } 130 }
132 } 131 }
133 132
134 void LogEventProvider::OnEventsDisabled() { 133 void LogEventProvider::OnEventsDisabled() {
135 // Restore the old log level. 134 // Restore the old log level.
136 SetMinLogLevel(old_log_level_); 135 SetMinLogLevel(old_log_level_);
137 } 136 }
138 137
139 } // namespace logging 138 } // namespace logging
OLDNEW
« no previous file with comments | « base/logging_unittest.cc ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698