diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-20 20:23:02 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-20 20:23:02 +0000 |
commit | c6e0757e159c474f847fa4bb6c2bbbf1e1effce2 (patch) | |
tree | 3a7a0d67d896b663bc9ae51763cb355a243af67b | |
parent | e987ee972f4fc9af948f72dbe21d34be6df8af5e (diff) | |
download | chromium_src-c6e0757e159c474f847fa4bb6c2bbbf1e1effce2.zip chromium_src-c6e0757e159c474f847fa4bb6c2bbbf1e1effce2.tar.gz chromium_src-c6e0757e159c474f847fa4bb6c2bbbf1e1effce2.tar.bz2 |
Convert LOG(INFO) to VLOG(1) - chrome/nacl/.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3939001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63256 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/nacl/nacl_main.cc | 8 | ||||
-rw-r--r-- | chrome/nacl/nacl_main_platform_delegate_mac.mm | 11 | ||||
-rw-r--r-- | chrome/nacl/nacl_main_platform_delegate_win.cc | 16 |
3 files changed, 17 insertions, 18 deletions
diff --git a/chrome/nacl/nacl_main.cc b/chrome/nacl/nacl_main.cc index 4477494..4722b47 100644 --- a/chrome/nacl/nacl_main.cc +++ b/chrome/nacl/nacl_main.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2009-2010 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. @@ -43,8 +43,8 @@ int NaClBrokerMain(const MainFunctionParams& parameters) { const CommandLine& parsed_command_line = parameters.command_line_; - DLOG(INFO) << "Started NaCL broker with " << - parsed_command_line.command_line_string(); + DVLOG(1) << "Started NaCL broker with " + << parsed_command_line.command_line_string(); // NOTE: this code is duplicated from browser_main.cc // IMPORTANT: This piece of code needs to run as early as possible in the @@ -127,7 +127,7 @@ int NaClMain(const MainFunctionParams& parameters) { // as a way of communicating test failure, because the nexe won't reply. // TODO(jvoung): find a better way to indicate failure that doesn't // require waiting for a timeout. - LOG(INFO) << "Sandbox test failed: Not launching NaCl process"; + VLOG(1) << "Sandbox test failed: Not launching NaCl process"; } #else NOTIMPLEMENTED() << " not implemented startup, plugin startup dialog etc."; diff --git a/chrome/nacl/nacl_main_platform_delegate_mac.mm b/chrome/nacl/nacl_main_platform_delegate_mac.mm index 218252b..a49d110 100644 --- a/chrome/nacl/nacl_main_platform_delegate_mac.mm +++ b/chrome/nacl/nacl_main_platform_delegate_mac.mm @@ -36,12 +36,11 @@ void NaClMainPlatformDelegate::PlatformUninitialize() { void NaClMainPlatformDelegate::InitSandboxTests(bool no_sandbox) { const CommandLine& command_line = parameters_.command_line_; - DLOG(INFO) << "Started NaClLdr with "; + DVLOG(1) << "Started NaClLdr with "; const std::vector<std::string>& argstrings = command_line.argv(); for (std::vector<std::string>::const_iterator ii = argstrings.begin(); - ii != argstrings.end(); ++ii) { - DLOG(INFO) << *ii; - } + ii != argstrings.end(); ++ii) + DVLOG(1) << *ii; // Be sure not to load the sandbox test DLL if the sandbox isn't on. // Comment-out guard and recompile if you REALLY want to test w/out the SB. @@ -75,10 +74,10 @@ bool NaClMainPlatformDelegate::RunSandboxTests() { base::GetFunctionPointerFromNativeLibrary(sandbox_test_module_, kNaClLoaderTestCall)); if (run_security_tests) { - DLOG(INFO) << "Running NaCl Loader security tests"; + DVLOG(1) << "Running NaCl Loader security tests"; result = (*run_security_tests)(); } else { - LOG(INFO) << "Failed to get NaCl sandbox test function"; + VLOG(1) << "Failed to get NaCl sandbox test function"; result = false; } base::UnloadNativeLibrary(sandbox_test_module_); diff --git a/chrome/nacl/nacl_main_platform_delegate_win.cc b/chrome/nacl/nacl_main_platform_delegate_win.cc index f7625e75..cfe38ff 100644 --- a/chrome/nacl/nacl_main_platform_delegate_win.cc +++ b/chrome/nacl/nacl_main_platform_delegate_win.cc @@ -31,7 +31,7 @@ void NaClMainPlatformDelegate::PlatformUninitialize() { void NaClMainPlatformDelegate::InitSandboxTests(bool no_sandbox) { const CommandLine& command_line = parameters_.command_line_; - DLOG(INFO) << "Started NaClLdr with " << command_line.command_line_string(); + DVLOG(1) << "Started NaClLdr with " << command_line.command_line_string(); sandbox::TargetServices* target_services = parameters_.sandbox_info_.TargetServices(); @@ -43,17 +43,17 @@ void NaClMainPlatformDelegate::InitSandboxTests(bool no_sandbox) { // At this point, hack on the suffix according to with bitness // of your windows process. #if defined(_WIN64) - DLOG(INFO) << "Using 64-bit test dll\n"; + DVLOG(1) << "Using 64-bit test dll\n"; test_dll_name = test_dll_name.InsertBeforeExtension(L"64"); - test_dll_name = test_dll_name.ReplaceExtension(L"dll"); + test_dll_name = test_dll_name.ReplaceExtension(L"dll"); #else - DLOG(INFO) << "Using 32-bit test dll\n"; + DVLOG(1) << "Using 32-bit test dll\n"; test_dll_name = test_dll_name.ReplaceExtension(L"dll"); #endif - DLOG(INFO) << "Loading test lib " << test_dll_name.value() << "\n"; + DVLOG(1) << "Loading test lib " << test_dll_name.value() << "\n"; sandbox_test_module_ = base::LoadNativeLibrary(test_dll_name); CHECK(sandbox_test_module_); - LOG(INFO) << "Testing NaCl sandbox\n"; + VLOG(1) << "Testing NaCl sandbox\n"; } } } @@ -79,10 +79,10 @@ bool NaClMainPlatformDelegate::RunSandboxTests() { base::GetFunctionPointerFromNativeLibrary(sandbox_test_module_, kNaClLoaderTestCall)); if (run_security_tests) { - DLOG(INFO) << "Running NaCl Loader security tests"; + DVLOG(1) << "Running NaCl Loader security tests"; result = (*run_security_tests)(); } else { - LOG(INFO) << "Failed to get NaCl sandbox test function"; + VLOG(1) << "Failed to get NaCl sandbox test function"; result = false; } base::UnloadNativeLibrary(sandbox_test_module_); |