summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-20 20:20:21 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-20 20:20:21 +0000
commit593df619ff5c865bea2ffdd8927e5462c91318a2 (patch)
treedde333d92fa21c0a0027237a67e5014e1478dcfb
parentac6285d41944add4d97235ee994814f177eada23 (diff)
downloadchromium_src-593df619ff5c865bea2ffdd8927e5462c91318a2.zip
chromium_src-593df619ff5c865bea2ffdd8927e5462c91318a2.tar.gz
chromium_src-593df619ff5c865bea2ffdd8927e5462c91318a2.tar.bz2
Convert LOG(INFO) to VLOG(1) - chrome/renderer/.
BUG=none TEST=none Review URL: http://codereview.chromium.org/3908005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63252 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/renderer/render_thread.cc4
-rw-r--r--chrome/renderer/render_view.cc6
-rw-r--r--chrome/renderer/renderer_main.cc8
-rw-r--r--chrome/renderer/renderer_main_platform_delegate_win.cc6
-rw-r--r--chrome/renderer/safe_browsing/phishing_dom_feature_extractor.cc10
-rw-r--r--chrome/renderer/speech_input_dispatcher.cc24
6 files changed, 28 insertions, 30 deletions
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc
index 9a71b31..ebb8af7 100644
--- a/chrome/renderer/render_thread.cc
+++ b/chrome/renderer/render_thread.cc
@@ -154,10 +154,10 @@ class SuicideOnChannelErrorFilter : public IPC::ChannelProxy::MessageFilter {
// stopgap, to avoid leaking due to not releasing Breakpad properly.
// TODO(viettrungluu): Investigate why this is being called.
if (IsCrashReporterEnabled()) {
- LOG(INFO) << "Cleaning up Breakpad.";
+ VLOG(1) << "Cleaning up Breakpad.";
DestructCrashReporter();
} else {
- LOG(INFO) << "Breakpad not enabled; no clean-up needed.";
+ VLOG(1) << "Breakpad not enabled; no clean-up needed.";
}
#endif // OS_MACOSX
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index d1214d0..1a82668 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -5564,10 +5564,8 @@ void RenderView::LogNavigationState(const NavigationState* state,
Time start = state->start_load_time();
Time finish = state->finish_load_time();
// TODO(mbelshe): should we log more stats?
- LOG(INFO) << "PLT: "
- << (finish - start).InMilliseconds()
- << "ms "
- << url.spec();
+ VLOG(1) << "PLT: " << (finish - start).InMilliseconds() << "ms "
+ << url.spec();
}
void RenderView::postAccessibilityNotification(
diff --git a/chrome/renderer/renderer_main.cc b/chrome/renderer/renderer_main.cc
index 4dd65a8..5b42d3e 100644
--- a/chrome/renderer/renderer_main.cc
+++ b/chrome/renderer/renderer_main.cc
@@ -103,16 +103,16 @@ class ShutdownDetector : public PlatformThread::Delegate {
} while (bytes_read < sizeof(signal));
if (bytes_read == sizeof(signal))
- LOG(INFO) << "Handling shutdown for signal " << signal << ".";
+ VLOG(1) << "Handling shutdown for signal " << signal << ".";
else
- LOG(INFO) << "Handling shutdown for unknown signal.";
+ VLOG(1) << "Handling shutdown for unknown signal.";
// Clean up Breakpad if necessary.
if (IsCrashReporterEnabled()) {
- LOG(INFO) << "Cleaning up Breakpad.";
+ VLOG(1) << "Cleaning up Breakpad.";
DestructCrashReporter();
} else {
- LOG(INFO) << "Breakpad not enabled; no clean-up needed.";
+ VLOG(1) << "Breakpad not enabled; no clean-up needed.";
}
// Something went seriously wrong, so get out.
diff --git a/chrome/renderer/renderer_main_platform_delegate_win.cc b/chrome/renderer/renderer_main_platform_delegate_win.cc
index 3af2793..08bf293 100644
--- a/chrome/renderer/renderer_main_platform_delegate_win.cc
+++ b/chrome/renderer/renderer_main_platform_delegate_win.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 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.
@@ -96,7 +96,7 @@ void RendererMainPlatformDelegate::PlatformUninitialize() {
bool RendererMainPlatformDelegate::InitSandboxTests(bool no_sandbox) {
const CommandLine& command_line = parameters_.command_line_;
- DLOG(INFO) << "Started renderer with " << command_line.command_line_string();
+ DVLOG(1) << "Started renderer with " << command_line.command_line_string();
sandbox::TargetServices* target_services =
parameters_.sandbox_info_.TargetServices();
@@ -134,7 +134,7 @@ void RendererMainPlatformDelegate::RunSandboxTests() {
DCHECK(run_security_tests);
if (run_security_tests) {
int test_count = 0;
- DLOG(INFO) << "Running renderer security tests";
+ DVLOG(1) << "Running renderer security tests";
BOOL result = run_security_tests(&test_count);
CHECK(result) << "Test number " << test_count << " has failed.";
}
diff --git a/chrome/renderer/safe_browsing/phishing_dom_feature_extractor.cc b/chrome/renderer/safe_browsing/phishing_dom_feature_extractor.cc
index 1f3e394..c9d5740 100644
--- a/chrome/renderer/safe_browsing/phishing_dom_feature_extractor.cc
+++ b/chrome/renderer/safe_browsing/phishing_dom_feature_extractor.cc
@@ -243,7 +243,7 @@ void PhishingDOMFeatureExtractor::HandleLink(
const WebKit::WebElement& element) {
// Count the number of times we link to a different host.
if (!element.hasAttribute("href")) {
- DLOG(INFO) << "Skipping anchor tag with no href";
+ DVLOG(1) << "Skipping anchor tag with no href";
return;
}
@@ -254,7 +254,7 @@ void PhishingDOMFeatureExtractor::HandleLink(
std::string domain;
bool is_external = IsExternalDomain(full_url, &domain);
if (domain.empty()) {
- DLOG(INFO) << "Could not extract domain from link: " << full_url;
+ DVLOG(1) << "Could not extract domain from link: " << full_url;
return;
}
@@ -289,7 +289,7 @@ void PhishingDOMFeatureExtractor::HandleForm(
std::string domain;
bool is_external = IsExternalDomain(full_url, &domain);
if (domain.empty()) {
- DLOG(INFO) << "Could not extract domain from form action: " << full_url;
+ DVLOG(1) << "Could not extract domain from form action: " << full_url;
return;
}
@@ -302,7 +302,7 @@ void PhishingDOMFeatureExtractor::HandleForm(
void PhishingDOMFeatureExtractor::HandleImage(
const WebKit::WebElement& element) {
if (!element.hasAttribute("src")) {
- DLOG(INFO) << "Skipping img tag with no src";
+ DVLOG(1) << "Skipping img tag with no src";
}
// Record whether the image points to a different domain.
@@ -311,7 +311,7 @@ void PhishingDOMFeatureExtractor::HandleImage(
std::string domain;
bool is_external = IsExternalDomain(full_url, &domain);
if (domain.empty()) {
- DLOG(INFO) << "Could not extract domain from image src: " << full_url;
+ DVLOG(1) << "Could not extract domain from image src: " << full_url;
return;
}
diff --git a/chrome/renderer/speech_input_dispatcher.cc b/chrome/renderer/speech_input_dispatcher.cc
index dbe9ff8..a8b6a04 100644
--- a/chrome/renderer/speech_input_dispatcher.cc
+++ b/chrome/renderer/speech_input_dispatcher.cc
@@ -41,45 +41,45 @@ bool SpeechInputDispatcher::startRecognition(
bool SpeechInputDispatcher::startRecognition(
int request_id, const WebKit::WebRect& element_rect) {
- LOG(INFO) << "SpeechInputDispatcher::startRecognition enter";
+ VLOG(1) << "SpeechInputDispatcher::startRecognition enter";
gfx::Size scroll = render_view_->webview()->mainFrame()->scrollOffset();
gfx::Rect rect = element_rect;
rect.Offset(-scroll.width(), -scroll.height());
render_view_->Send(new ViewHostMsg_SpeechInput_StartRecognition(
render_view_->routing_id(), request_id, rect));
- LOG(INFO) << "SpeechInputDispatcher::startRecognition exit";
+ VLOG(1) << "SpeechInputDispatcher::startRecognition exit";
return true;
}
void SpeechInputDispatcher::cancelRecognition(int request_id) {
- LOG(INFO) << "SpeechInputDispatcher::cancelRecognition enter";
+ VLOG(1) << "SpeechInputDispatcher::cancelRecognition enter";
render_view_->Send(new ViewHostMsg_SpeechInput_CancelRecognition(
render_view_->routing_id(), request_id));
- LOG(INFO) << "SpeechInputDispatcher::cancelRecognition exit";
+ VLOG(1) << "SpeechInputDispatcher::cancelRecognition exit";
}
void SpeechInputDispatcher::stopRecording(int request_id) {
- LOG(INFO) << "SpeechInputDispatcher::stopRecording enter";
+ VLOG(1) << "SpeechInputDispatcher::stopRecording enter";
render_view_->Send(new ViewHostMsg_SpeechInput_StopRecording(
render_view_->routing_id(), request_id));
- LOG(INFO) << "SpeechInputDispatcher::stopRecording exit";
+ VLOG(1) << "SpeechInputDispatcher::stopRecording exit";
}
void SpeechInputDispatcher::OnSpeechRecognitionResult(
int request_id, const string16& result) {
- LOG(INFO) << "SpeechInputDispatcher::OnSpeechRecognitionResult enter";
+ VLOG(1) << "SpeechInputDispatcher::OnSpeechRecognitionResult enter";
listener_->setRecognitionResult(request_id, result);
- LOG(INFO) << "SpeechInputDispatcher::OnSpeechRecognitionResult exit";
+ VLOG(1) << "SpeechInputDispatcher::OnSpeechRecognitionResult exit";
}
void SpeechInputDispatcher::OnSpeechRecordingComplete(int request_id) {
- LOG(INFO) << "SpeechInputDispatcher::OnSpeechRecordingComplete enter";
+ VLOG(1) << "SpeechInputDispatcher::OnSpeechRecordingComplete enter";
listener_->didCompleteRecording(request_id);
- LOG(INFO) << "SpeechInputDispatcher::OnSpeechRecordingComplete exit";
+ VLOG(1) << "SpeechInputDispatcher::OnSpeechRecordingComplete exit";
}
void SpeechInputDispatcher::OnSpeechRecognitionComplete(int request_id) {
- LOG(INFO) << "SpeechInputDispatcher::OnSpeechRecognitionComplete enter";
+ VLOG(1) << "SpeechInputDispatcher::OnSpeechRecognitionComplete enter";
listener_->didCompleteRecognition(request_id);
- LOG(INFO) << "SpeechInputDispatcher::OnSpeechRecognitionComplete exit";
+ VLOG(1) << "SpeechInputDispatcher::OnSpeechRecognitionComplete exit";
}