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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 12091015: Add missing console log message level (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « no previous file | no next file » | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1962 matching lines...) Expand 10 before | Expand all | Expand 10 after
1973 return new CompositorOutputSurface(routing_id(), context, NULL); 1973 return new CompositorOutputSurface(routing_id(), context, NULL);
1974 } 1974 }
1975 } 1975 }
1976 1976
1977 void RenderViewImpl::didAddMessageToConsole( 1977 void RenderViewImpl::didAddMessageToConsole(
1978 const WebConsoleMessage& message, const WebString& source_name, 1978 const WebConsoleMessage& message, const WebString& source_name,
1979 unsigned source_line) { 1979 unsigned source_line) {
1980 logging::LogSeverity log_severity = logging::LOG_VERBOSE; 1980 logging::LogSeverity log_severity = logging::LOG_VERBOSE;
1981 switch (message.level) { 1981 switch (message.level) {
1982 case WebConsoleMessage::LevelTip: 1982 case WebConsoleMessage::LevelTip:
1983 case WebConsoleMessage::LevelDebug:
1983 log_severity = logging::LOG_VERBOSE; 1984 log_severity = logging::LOG_VERBOSE;
1984 break; 1985 break;
1985 case WebConsoleMessage::LevelLog: 1986 case WebConsoleMessage::LevelLog:
1986 log_severity = logging::LOG_INFO; 1987 log_severity = logging::LOG_INFO;
1987 break; 1988 break;
1988 case WebConsoleMessage::LevelWarning: 1989 case WebConsoleMessage::LevelWarning:
1989 log_severity = logging::LOG_WARNING; 1990 log_severity = logging::LOG_WARNING;
1990 break; 1991 break;
1991 case WebConsoleMessage::LevelError: 1992 case WebConsoleMessage::LevelError:
1992 log_severity = logging::LOG_ERROR; 1993 log_severity = logging::LOG_ERROR;
(...skipping 4592 matching lines...) Expand 10 before | Expand all | Expand 10 after
6585 } 6586 }
6586 #endif 6587 #endif
6587 6588
6588 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( 6589 void RenderViewImpl::OnReleaseDisambiguationPopupDIB(
6589 TransportDIB::Handle dib_handle) { 6590 TransportDIB::Handle dib_handle) {
6590 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); 6591 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle);
6591 RenderProcess::current()->ReleaseTransportDIB(dib); 6592 RenderProcess::current()->ReleaseTransportDIB(dib);
6592 } 6593 }
6593 6594
6594 } // namespace content 6595 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698