summaryrefslogtreecommitdiffstats
path: root/chrome_frame/bind_status_callback_impl.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-01 11:17:37 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-01 11:17:37 +0000
commitd3451d83da3c72c35c0c6b391833fe47f0b4236a (patch)
tree334d32cdf9874f6bbea3534b74f741f82907d30b /chrome_frame/bind_status_callback_impl.cc
parent244f335890efb6fa0916b80afdecb80dcb3764a4 (diff)
downloadchromium_src-d3451d83da3c72c35c0c6b391833fe47f0b4236a.zip
chromium_src-d3451d83da3c72c35c0c6b391833fe47f0b4236a.tar.gz
chromium_src-d3451d83da3c72c35c0c6b391833fe47f0b4236a.tar.bz2
chrome_frame: Append base:: in the StringPrintf calls.
(Note: this is a TODO in string_util.h) BUG=None TEST=trybots Review URL: http://codereview.chromium.org/3594002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61166 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/bind_status_callback_impl.cc')
-rw-r--r--chrome_frame/bind_status_callback_impl.cc31
1 files changed, 16 insertions, 15 deletions
diff --git a/chrome_frame/bind_status_callback_impl.cc b/chrome_frame/bind_status_callback_impl.cc
index 3b7ff04..b9fa0c0 100644
--- a/chrome_frame/bind_status_callback_impl.cc
+++ b/chrome_frame/bind_status_callback_impl.cc
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "base/string_util.h"
+#include "base/stringprintf.h"
BSCBImpl::BSCBImpl() {
DLOG(INFO) << __FUNCTION__ << me();
@@ -16,8 +17,7 @@ BSCBImpl::~BSCBImpl() {
}
std::string BSCBImpl::me() {
- return StringPrintf(" obj=0x%08X",
- static_cast<BSCBImpl*>(this));
+ return base::StringPrintf(" obj=0x%08X", static_cast<BSCBImpl*>(this));
}
HRESULT BSCBImpl::DelegateQI(void* obj, REFIID iid, void** ret, DWORD cookie) {
@@ -75,7 +75,7 @@ HRESULT BSCBImpl::QueryService(REFGUID service, REFIID iid, void** object) {
// IBindStatusCallback
HRESULT BSCBImpl::OnStartBinding(DWORD reserved, IBinding* binding) {
- DLOG(INFO) << __FUNCTION__ << me() << StringPrintf(" tid=%i",
+ DLOG(INFO) << __FUNCTION__ << me() << base::StringPrintf(" tid=%i",
PlatformThread::CurrentId());
HRESULT hr = S_OK;
if (delegate_)
@@ -84,7 +84,7 @@ HRESULT BSCBImpl::OnStartBinding(DWORD reserved, IBinding* binding) {
}
HRESULT BSCBImpl::GetPriority(LONG* priority) {
- DLOG(INFO) << __FUNCTION__ << me() << StringPrintf(" tid=%i",
+ DLOG(INFO) << __FUNCTION__ << me() << base::StringPrintf(" tid=%i",
PlatformThread::CurrentId());
HRESULT hr = S_OK;
if (delegate_)
@@ -93,7 +93,7 @@ HRESULT BSCBImpl::GetPriority(LONG* priority) {
}
HRESULT BSCBImpl::OnLowResource(DWORD reserved) {
- DLOG(INFO) << __FUNCTION__ << me() << StringPrintf(" tid=%i",
+ DLOG(INFO) << __FUNCTION__ << me() << base::StringPrintf(" tid=%i",
PlatformThread::CurrentId());
HRESULT hr = S_OK;
if (delegate_)
@@ -103,8 +103,9 @@ HRESULT BSCBImpl::OnLowResource(DWORD reserved) {
HRESULT BSCBImpl::OnProgress(ULONG progress, ULONG progress_max,
ULONG status_code, LPCWSTR status_text) {
- DLOG(INFO) << __FUNCTION__ << me() << StringPrintf(" status=%i tid=%i %ls",
- status_code, PlatformThread::CurrentId(), status_text);
+ DLOG(INFO) << __FUNCTION__ << me() << base::StringPrintf(
+ " status=%i tid=%i %ls", status_code, PlatformThread::CurrentId(),
+ status_text);
HRESULT hr = S_OK;
if (delegate_)
delegate_->OnProgress(progress, progress_max, status_code, status_text);
@@ -112,8 +113,8 @@ HRESULT BSCBImpl::OnProgress(ULONG progress, ULONG progress_max,
}
HRESULT BSCBImpl::OnStopBinding(HRESULT hresult, LPCWSTR error) {
- DLOG(INFO) << __FUNCTION__ << me() << StringPrintf(" hr=0x%08X '%ls' tid=%i",
- hresult, error, PlatformThread::CurrentId());
+ DLOG(INFO) << __FUNCTION__ << me() << base::StringPrintf(
+ " hr=0x%08X '%ls' tid=%i", hresult, error, PlatformThread::CurrentId());
HRESULT hr = S_OK;
if (delegate_)
delegate_->OnStopBinding(hresult, error);
@@ -121,7 +122,7 @@ HRESULT BSCBImpl::OnStopBinding(HRESULT hresult, LPCWSTR error) {
}
HRESULT BSCBImpl::GetBindInfo(DWORD* bindf, BINDINFO* bind_info) {
- DLOG(INFO) << __FUNCTION__ << me() << StringPrintf(" tid=%i",
+ DLOG(INFO) << __FUNCTION__ << me() << base::StringPrintf(" tid=%i",
PlatformThread::CurrentId());
HRESULT hr = S_OK;
if (delegate_)
@@ -131,7 +132,7 @@ HRESULT BSCBImpl::GetBindInfo(DWORD* bindf, BINDINFO* bind_info) {
HRESULT BSCBImpl::OnDataAvailable(DWORD bscf, DWORD size,
FORMATETC* format_etc, STGMEDIUM* stgmed) {
- DLOG(INFO) << __FUNCTION__ << me() << StringPrintf(" tid=%i",
+ DLOG(INFO) << __FUNCTION__ << me() << base::StringPrintf(" tid=%i",
PlatformThread::CurrentId());
HRESULT hr = S_OK;
if (delegate_)
@@ -140,7 +141,7 @@ HRESULT BSCBImpl::OnDataAvailable(DWORD bscf, DWORD size,
}
HRESULT BSCBImpl::OnObjectAvailable(REFIID iid, IUnknown* unk) {
- DLOG(INFO) << __FUNCTION__ << me() << StringPrintf(" tid=%i",
+ DLOG(INFO) << __FUNCTION__ << me() << base::StringPrintf(" tid=%i",
PlatformThread::CurrentId());
HRESULT hr = S_OK;
if (delegate_)
@@ -151,7 +152,7 @@ HRESULT BSCBImpl::OnObjectAvailable(REFIID iid, IUnknown* unk) {
// IBindStatusCallbackEx
HRESULT BSCBImpl::GetBindInfoEx(DWORD* bindf, BINDINFO* bind_info,
DWORD* bindf2, DWORD* reserved) {
- DLOG(INFO) << __FUNCTION__ << me() << StringPrintf(" tid=%i",
+ DLOG(INFO) << __FUNCTION__ << me() << base::StringPrintf(" tid=%i",
PlatformThread::CurrentId());
HRESULT hr = S_OK;
if (delegate_) {
@@ -166,7 +167,7 @@ HRESULT BSCBImpl::GetBindInfoEx(DWORD* bindf, BINDINFO* bind_info,
HRESULT BSCBImpl::BeginningTransaction(LPCWSTR url, LPCWSTR headers,
DWORD reserved,
LPWSTR* additional_headers) {
- DLOG(INFO) << __FUNCTION__ << me() << StringPrintf(" tid=%i",
+ DLOG(INFO) << __FUNCTION__ << me() << base::StringPrintf(" tid=%i",
PlatformThread::CurrentId());
HRESULT hr = S_OK;
@@ -186,7 +187,7 @@ HRESULT BSCBImpl::BeginningTransaction(LPCWSTR url, LPCWSTR headers,
HRESULT BSCBImpl::OnResponse(DWORD response_code, LPCWSTR response_headers,
LPCWSTR request_headers,
LPWSTR* additional_headers) {
- DLOG(INFO) << __FUNCTION__ << me() << StringPrintf(" tid=%i",
+ DLOG(INFO) << __FUNCTION__ << me() << base::StringPrintf(" tid=%i",
PlatformThread::CurrentId());
HRESULT hr = S_OK;