diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-29 21:38:41 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-29 21:38:41 +0000 |
commit | 060588ca2b55e9099d2fff51182947151f69ad0c (patch) | |
tree | d54844407e3448eb7b70c0ac1fb6f1ad4c1d456f /chrome/browser/sync/util | |
parent | e517d203425edeeb028bc1bde0e87cd90bc85c25 (diff) | |
download | chromium_src-060588ca2b55e9099d2fff51182947151f69ad0c.zip chromium_src-060588ca2b55e9099d2fff51182947151f69ad0c.tar.gz chromium_src-060588ca2b55e9099d2fff51182947151f69ad0c.tar.bz2 |
[Sync] Convert VLOGs to DVLOGs
BUG=101424
TEST=
Review URL: http://codereview.chromium.org/8726020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112032 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/util')
-rw-r--r-- | chrome/browser/sync/util/logging.h | 7 | ||||
-rw-r--r-- | chrome/browser/sync/util/user_settings_posix.cc | 10 | ||||
-rw-r--r-- | chrome/browser/sync/util/weak_handle.cc | 2 |
3 files changed, 10 insertions, 9 deletions
diff --git a/chrome/browser/sync/util/logging.h b/chrome/browser/sync/util/logging.h index b28efa2..e14ac49 100644 --- a/chrome/browser/sync/util/logging.h +++ b/chrome/browser/sync/util/logging.h @@ -25,10 +25,11 @@ bool VlogIsOnForLocation(const tracked_objects::Location& from_here, logging::LogMessage(from_here.file_name(), from_here.line_number(), \ -verbose_level).stream() -#define VLOG_LOC(from_here, verbose_level) \ +#define DVLOG_LOC(from_here, verbose_level) \ LAZY_STREAM( \ VLOG_LOC_STREAM(from_here, verbose_level), \ - VLOG_IS_ON(verbose_level) || \ - ::browser_sync::VlogIsOnForLocation(from_here, verbose_level)) + ::logging::DEBUG_MODE && \ + (VLOG_IS_ON(verbose_level) || \ + ::browser_sync::VlogIsOnForLocation(from_here, verbose_level))) \ #endif // CHROME_BROWSER_SYNC_UTIL_LOGGING_H_ diff --git a/chrome/browser/sync/util/user_settings_posix.cc b/chrome/browser/sync/util/user_settings_posix.cc index 660c282..257095c 100644 --- a/chrome/browser/sync/util/user_settings_posix.cc +++ b/chrome/browser/sync/util/user_settings_posix.cc @@ -17,8 +17,8 @@ void UserSettings::SetAuthTokenForService( const std::string& service_name, const std::string& long_lived_service_token) { - VLOG(1) << "Saving auth token " << long_lived_service_token - << " for " << email << "for service " << service_name; + DVLOG(1) << "Saving auth token " << long_lived_service_token + << " for " << email << "for service " << service_name; std::string encrypted_service_token; if (!Encryptor::EncryptString(long_lived_service_token, @@ -60,13 +60,13 @@ bool UserSettings::GetLastUserAndServiceToken(const std::string& service_name, } *username = query.column_string(0); - VLOG(1) << "Found service token for:" << *username << " @ " << service_name - << " returning: " << *service_token; + DVLOG(1) << "Found service token for:" << *username << " @ " << service_name + << " returning: " << *service_token; return true; } - VLOG(1) << "Couldn't find service token for " << service_name; + DVLOG(1) << "Couldn't find service token for " << service_name; return false; } diff --git a/chrome/browser/sync/util/weak_handle.cc b/chrome/browser/sync/util/weak_handle.cc index 5246fa7..d751d48 100644 --- a/chrome/browser/sync/util/weak_handle.cc +++ b/chrome/browser/sync/util/weak_handle.cc @@ -26,7 +26,7 @@ void WeakHandleCoreBase::PostToOwnerThread( const tracked_objects::Location& from_here, const base::Closure& fn) const { if (!owner_loop_proxy_->PostTask(from_here, fn)) { - VLOG(1) << "Could not post task from " << from_here.ToString(); + DVLOG(1) << "Could not post task from " << from_here.ToString(); } } |