summaryrefslogtreecommitdiffstats
path: root/chrome_frame/chrome_frame_activex.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-16 04:01:00 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-16 04:01:00 +0000
commitd9dc4ad5e12dd9f70c3ec3c95c6a286452a7c90d (patch)
tree9b1ffe1000e6c700f9bd430f8d29ae6bf5f73449 /chrome_frame/chrome_frame_activex.cc
parentce0e7246e92f2da8e6b865dd51ae626f9867ca4f (diff)
downloadchromium_src-d9dc4ad5e12dd9f70c3ec3c95c6a286452a7c90d.zip
chromium_src-d9dc4ad5e12dd9f70c3ec3c95c6a286452a7c90d.tar.gz
chromium_src-d9dc4ad5e12dd9f70c3ec3c95c6a286452a7c90d.tar.bz2
Fix two cases I missed when renaming/moving Windows-related scoped stuff.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62844 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/chrome_frame_activex.cc')
-rw-r--r--chrome_frame/chrome_frame_activex.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome_frame/chrome_frame_activex.cc b/chrome_frame/chrome_frame_activex.cc
index 13ad0fa..00d0b10 100644
--- a/chrome_frame/chrome_frame_activex.cc
+++ b/chrome_frame/chrome_frame_activex.cc
@@ -536,7 +536,8 @@ HRESULT ChromeFrameActivex::CreateScriptBlockForEvent(
HRESULT hr = GetContainingDocument(document.Receive());
if (SUCCEEDED(hr)) {
ScopedComPtr<IHTMLElement> element, new_element;
- document->createElement(StackBstr(L"script"), element.Receive());
+ document->createElement(base::win::ScopedBstr(L"script"),
+ element.Receive());
if (element) {
ScopedComPtr<IHTMLScriptElement> script_element;
if (SUCCEEDED(hr = script_element.QueryFrom(element))) {
@@ -544,9 +545,10 @@ HRESULT ChromeFrameActivex::CreateScriptBlockForEvent(
script_element->put_event(event_name);
script_element->put_text(script);
- hr = insert_after->insertAdjacentElement(StackBstr(L"afterEnd"),
- element,
- new_element.Receive());
+ hr = insert_after->insertAdjacentElement(
+ base::win::StackBstr(L"afterEnd"),
+ element,
+ new_element.Receive());
}
}
}