diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-22 19:46:10 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-22 19:46:10 +0000 |
commit | 8a70f2301294c3c4b572b80952edbec5f688cd62 (patch) | |
tree | 49b650302509c3d36d42d37c6f7c658454dc6716 /chrome/browser | |
parent | 9e685e5c8bb389fa3ae820d4c05b9e1c4ee46a38 (diff) | |
download | chromium_src-8a70f2301294c3c4b572b80952edbec5f688cd62.zip chromium_src-8a70f2301294c3c4b572b80952edbec5f688cd62.tar.gz chromium_src-8a70f2301294c3c4b572b80952edbec5f688cd62.tar.bz2 |
Convert LOG(INFO) to VLOG(1) - chrome/browser/chromeos/cros/.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/4012001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63546 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/chromeos/cros/cryptohome_library.cc | 2 | ||||
-rw-r--r-- | chrome/browser/chromeos/cros/input_method_library.cc | 2 | ||||
-rw-r--r-- | chrome/browser/chromeos/cros/network_library.cc | 55 | ||||
-rw-r--r-- | chrome/browser/chromeos/cros/power_library.cc | 13 | ||||
-rw-r--r-- | chrome/browser/chromeos/cros/system_library.cc | 4 |
5 files changed, 36 insertions, 40 deletions
diff --git a/chrome/browser/chromeos/cros/cryptohome_library.cc b/chrome/browser/chromeos/cros/cryptohome_library.cc index 52ce85c..cd9a31d 100644 --- a/chrome/browser/chromeos/cros/cryptohome_library.cc +++ b/chrome/browser/chromeos/cros/cryptohome_library.cc @@ -163,7 +163,7 @@ class CryptohomeLibraryImpl : public CryptohomeLibrary { LOG(ERROR) << error; return false; } - LOG(INFO) << "Adding handler for " << async_id; + VLOG(1) << "Adding handler for " << async_id; callback_map_[async_id] = d; return true; } diff --git a/chrome/browser/chromeos/cros/input_method_library.cc b/chrome/browser/chromeos/cros/input_method_library.cc index 62ffbb1..9580c3f 100644 --- a/chrome/browser/chromeos/cros/input_method_library.cc +++ b/chrome/browser/chromeos/cros/input_method_library.cc @@ -495,7 +495,7 @@ class InputMethodLibraryImpl : public InputMethodLibrary, } void SetDeferImeStartup(bool defer) { - LOG(INFO) << "Setting DeferImeStartup to " << defer; + VLOG(1) << "Setting DeferImeStartup to " << defer; defer_ime_startup_ = defer; } diff --git a/chrome/browser/chromeos/cros/network_library.cc b/chrome/browser/chromeos/cros/network_library.cc index 73751b3..6d3dd45 100644 --- a/chrome/browser/chromeos/cros/network_library.cc +++ b/chrome/browser/chromeos/cros/network_library.cc @@ -823,12 +823,11 @@ class NetworkLibraryImpl : public NetworkLibrary { // If network device is already enabled/disabled, then don't do anything. if (enable && offline_mode_) { - LOG(INFO) << "Trying to enable offline mode when it's already enabled. "; + VLOG(1) << "Trying to enable offline mode when it's already enabled."; return; } if (!enable && !offline_mode_) { - LOG(INFO) << - "Trying to disable offline mode when it's already disabled. "; + VLOG(1) << "Trying to disable offline mode when it's already disabled."; return; } @@ -976,23 +975,22 @@ class NetworkLibraryImpl : public NetworkLibrary { CellularNetworkVector* cellular_networks, WifiNetworkVector* remembered_wifi_networks, CellularNetworkVector* remembered_cellular_networks) { - DLOG(INFO) << "ParseSystem:"; + DVLOG(1) << "ParseSystem:"; ethernet->Clear(); for (int i = 0; i < system->service_size; i++) { const ServiceInfo service = *system->GetServiceInfo(i); - DLOG(INFO) << " (" << service.type << - ") " << service.name << - " mode=" << service.mode << - " state=" << service.state << - " sec=" << service.security << - " req=" << service.passphrase_required << - " pass=" << service.passphrase << - " id=" << service.identity << - " certpath=" << service.cert_path << - " str=" << service.strength << - " fav=" << service.favorite << - " auto=" << service.auto_connect << - " error=" << service.error; + DVLOG(1) << " (" << service.type << ") " << service.name + << " mode=" << service.mode + << " state=" << service.state + << " sec=" << service.security + << " req=" << service.passphrase_required + << " pass=" << service.passphrase + << " id=" << service.identity + << " certpath=" << service.cert_path + << " str=" << service.strength + << " fav=" << service.favorite + << " auto=" << service.auto_connect + << " error=" << service.error; // Once a connected ethernet service is found, disregard other ethernet // services that are also found if (service.type == TYPE_ETHERNET && !(ethernet->connected())) @@ -1002,20 +1000,19 @@ class NetworkLibraryImpl : public NetworkLibrary { else if (service.type == TYPE_CELLULAR) cellular_networks->push_back(CellularNetwork(service)); } - DLOG(INFO) << "Remembered networks:"; + DVLOG(1) << "Remembered networks:"; for (int i = 0; i < system->remembered_service_size; i++) { const ServiceInfo& service = *system->GetRememberedServiceInfo(i); // Only serices marked as auto_connect are considered remembered networks. // TODO(chocobo): Don't add to remembered service if currently available. if (service.auto_connect) { - DLOG(INFO) << " (" << service.type << - ") " << service.name << - " mode=" << service.mode << - " sec=" << service.security << - " pass=" << service.passphrase << - " id=" << service.identity << - " certpath=" << service.cert_path << - " auto=" << service.auto_connect; + DVLOG(1) << " (" << service.type << ") " << service.name + << " mode=" << service.mode + << " sec=" << service.security + << " pass=" << service.passphrase + << " id=" << service.identity + << " certpath=" << service.cert_path + << " auto=" << service.auto_connect; if (service.type == TYPE_WIFI) remembered_wifi_networks->push_back(WifiNetwork(service)); else if (service.type == TYPE_CELLULAR) @@ -1027,14 +1024,14 @@ class NetworkLibraryImpl : public NetworkLibrary { void Init() { // First, get the currently available networks. This data is cached // on the connman side, so the call should be quick. - LOG(INFO) << "Getting initial CrOS network info."; + VLOG(1) << "Getting initial CrOS network info."; UpdateSystemInfo(); - LOG(INFO) << "Registering for network status updates."; + VLOG(1) << "Registering for network status updates."; // Now, register to receive updates on network status. network_status_connection_ = MonitorNetwork(&NetworkStatusChangedHandler, this); - LOG(INFO) << "Registering for cellular data plan updates."; + VLOG(1) << "Registering for cellular data plan updates."; data_plan_monitor_ = MonitorCellularDataPlan(&DataPlanUpdateHandler, this); } diff --git a/chrome/browser/chromeos/cros/power_library.cc b/chrome/browser/chromeos/cros/power_library.cc index 7caea61..bb5efcd 100644 --- a/chrome/browser/chromeos/cros/power_library.cc +++ b/chrome/browser/chromeos/cros/power_library.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. @@ -109,12 +109,11 @@ class PowerLibraryImpl : public PowerLibrary { return; } - DLOG(INFO) << "Power" << - " lpo=" << status.line_power_on << - " sta=" << status.battery_state << - " per=" << status.battery_percentage << - " tte=" << status.battery_time_to_empty << - " ttf=" << status.battery_time_to_full; + DVLOG(1) << "Power lpo=" << status.line_power_on + << " sta=" << status.battery_state + << " per=" << status.battery_percentage + << " tte=" << status.battery_time_to_empty + << " ttf=" << status.battery_time_to_full; status_ = status; FOR_EACH_OBSERVER(Observer, observers_, PowerChanged(this)); } diff --git a/chrome/browser/chromeos/cros/system_library.cc b/chrome/browser/chromeos/cros/system_library.cc index b14e38e..6c902b4 100644 --- a/chrome/browser/chromeos/cros/system_library.cc +++ b/chrome/browser/chromeos/cros/system_library.cc @@ -32,7 +32,7 @@ class SystemLibraryImpl : public SystemLibrary { icu::TimeZone::createTimeZone(icu::UnicodeString::fromUTF8(id)); timezone_.reset(timezone); icu::TimeZone::setDefault(*timezone); - LOG(INFO) << "Timezone is " << id; + VLOG(1) << "Timezone is " << id; } void AddObserver(Observer* observer) { @@ -54,7 +54,7 @@ class SystemLibraryImpl : public SystemLibrary { timezone->getID(unicode); std::string id; UTF16ToUTF8(unicode.getBuffer(), unicode.length(), &id); - LOG(INFO) << "Setting timezone to " << id; + VLOG(1) << "Setting timezone to " << id; chromeos::SetTimezoneID(id); } icu::TimeZone::setDefault(*timezone); |