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/chrome_frame_activex.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/chrome_frame_activex.cc')
-rw-r--r-- | chrome_frame/chrome_frame_activex.cc | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/chrome_frame/chrome_frame_activex.cc b/chrome_frame/chrome_frame_activex.cc index 5da61f5..5aa9294 100644 --- a/chrome_frame/chrome_frame_activex.cc +++ b/chrome_frame/chrome_frame_activex.cc @@ -19,6 +19,7 @@ #include "base/singleton.h" #include "base/string_split.h" #include "base/string_util.h" +#include "base/stringprintf.h" #include "base/trace_event.h" #include "base/utf_string_conversions.h" #include "chrome/common/chrome_constants.h" @@ -330,10 +331,11 @@ STDMETHODIMP ChromeFrameActivex::Load(IPropertyBag* bag, IErrorLog* error_log) { FAILED(hr = CreateScriptBlockForEvent(element, object_id, V_BSTR(&value), prop))) { DLOG(ERROR) << "Failed to create script block for " << prop - << StringPrintf(L"hr=0x%08X, vt=%i", hr, value.type()); + << base::StringPrintf(L"hr=0x%08X, vt=%i", hr, + value.type()); } else { DLOG(INFO) << "script block created for event " << prop << - StringPrintf(" (0x%08X)", hr) << " connections: " << + base::StringPrintf(" (0x%08X)", hr) << " connections: " << ProxyDIChromeFrameEvents<ChromeFrameActivex>::m_vec.GetSize(); } } else { @@ -362,7 +364,7 @@ STDMETHODIMP ChromeFrameActivex::Load(IPropertyBag* bag, IErrorLog* error_log) { } DLOG_IF(ERROR, FAILED(hr)) - << StringPrintf("Failed to load property bag: 0x%08X", hr); + << base::StringPrintf("Failed to load property bag: 0x%08X", hr); return hr; } @@ -574,7 +576,7 @@ void ChromeFrameActivex::FireEvent(const EventHandlers& handlers, // 0x80020101 == SCRIPT_E_REPORTED. // When the script we're invoking has an error, we get this error back. DLOG_IF(ERROR, FAILED(hr) && hr != 0x80020101) - << StringPrintf(L"Failed to invoke script: 0x%08X", hr); + << base::StringPrintf(L"Failed to invoke script: 0x%08X", hr); } } @@ -595,7 +597,7 @@ void ChromeFrameActivex::FireEvent(const EventHandlers& handlers, // 0x80020101 == SCRIPT_E_REPORTED. // When the script we're invoking has an error, we get this error back. DLOG_IF(ERROR, FAILED(hr) && hr != 0x80020101) - << StringPrintf(L"Failed to invoke script: 0x%08X", hr); + << base::StringPrintf(L"Failed to invoke script: 0x%08X", hr); } } @@ -636,7 +638,7 @@ HRESULT ChromeFrameActivex::registerBhoIfNeeded() { web_browser2.Receive()); if (FAILED(hr) || web_browser2.get() == NULL) { DLOG(WARNING) << "Failed to get IWebBrowser2 from client site. Error:" - << StringPrintf(" 0x%08X", hr); + << base::StringPrintf(" 0x%08X", hr); return hr; } @@ -648,14 +650,14 @@ HRESULT ChromeFrameActivex::registerBhoIfNeeded() { hr = bho.CreateInstance(CLSID_ChromeFrameBHO, NULL, CLSCTX_INPROC_SERVER); if (FAILED(hr)) { NOTREACHED() << "Failed to register ChromeFrame BHO. Error:" - << StringPrintf(" 0x%08X", hr); + << base::StringPrintf(" 0x%08X", hr); return hr; } hr = bho->SetSite(web_browser2); if (FAILED(hr)) { NOTREACHED() << "ChromeFrame BHO SetSite failed. Error:" - << StringPrintf(" 0x%08X", hr); + << base::StringPrintf(" 0x%08X", hr); return hr; } |