diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-01 11:17:37 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-01 11:17:37 +0000 |
commit | d3451d83da3c72c35c0c6b391833fe47f0b4236a (patch) | |
tree | 334d32cdf9874f6bbea3534b74f741f82907d30b /chrome_frame/urlmon_moniker.cc | |
parent | 244f335890efb6fa0916b80afdecb80dcb3764a4 (diff) | |
download | chromium_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/urlmon_moniker.cc')
-rw-r--r-- | chrome_frame/urlmon_moniker.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome_frame/urlmon_moniker.cc b/chrome_frame/urlmon_moniker.cc index 452a9a6..f13acb5 100644 --- a/chrome_frame/urlmon_moniker.cc +++ b/chrome_frame/urlmon_moniker.cc @@ -7,6 +7,7 @@ #include <shlguid.h> #include "base/string_util.h" +#include "base/stringprintf.h" #include "base/utf_string_conversions.h" #include "chrome_frame/bho.h" #include "chrome_frame/bind_context_info.h" @@ -50,7 +51,7 @@ HRESULT NavigationManager::NavigateToCurrentUrlInCF(IBrowserService* browser) { // If there's a referrer, preserve it. std::wstring headers; if (!referrer_.empty()) { - headers = StringPrintf(L"Referer: %ls\r\n\r\n", + headers = base::StringPrintf(L"Referer: %ls\r\n\r\n", ASCIIToWide(referrer_).c_str()); } @@ -63,7 +64,7 @@ HRESULT NavigationManager::NavigateToCurrentUrlInCF(IBrowserService* browser) { hr = NavigateBrowserToMoniker(browser, moniker, headers.c_str(), bind_context, fragment.c_str()); - DLOG(INFO) << StringPrintf("NavigateBrowserToMoniker: 0x%08X", hr); + DLOG(INFO) << base::StringPrintf("NavigateBrowserToMoniker: 0x%08X", hr); } } @@ -105,7 +106,8 @@ bool MonikerPatch::Initialize() { DCHECK(SUCCEEDED(hr)); if (SUCCEEDED(hr)) { hr = vtable_patch::PatchInterfaceMethods(moniker, IMoniker_PatchInfo); - DLOG_IF(ERROR, FAILED(hr)) << StringPrintf("patch failed 0x%08X", hr); + DLOG_IF(ERROR, FAILED(hr)) << base::StringPrintf( + "patch failed 0x%08X", hr); } return SUCCEEDED(hr); @@ -120,7 +122,7 @@ bool ShouldWrapCallback(IMoniker* moniker, REFIID iid, IBindCtx* bind_context) { CComHeapPtr<WCHAR> url; HRESULT hr = moniker->GetDisplayName(bind_context, NULL, &url); if (!url) { - DLOG(INFO) << __FUNCTION__ << StringPrintf( + DLOG(INFO) << __FUNCTION__ << base::StringPrintf( " GetDisplayName failed. Error: 0x%x", hr); return false; } |