Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4052)

Unified Diff: chrome_frame/utils.cc

Issue 6253003: Fix for the ChromeFrame DownloadFromForm test failures on the IE9 builder. Th... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/extra_system_apis.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/utils.cc
===================================================================
--- chrome_frame/utils.cc (revision 71338)
+++ chrome_frame/utils.cc (working copy)
@@ -847,9 +847,17 @@
uri_container->GetIUri(uri_obj.Receive());
DCHECK(uri_obj);
- hr = browser_priv2->NavigateWithBindCtx2(uri_obj, NULL, NULL, NULL,
- headers_var.AsInput(), bind_ctx,
- const_cast<wchar_t*>(fragment));
+ if (GetIEVersion() < IE_9) {
+ hr = browser_priv2->NavigateWithBindCtx2(
+ uri_obj, NULL, NULL, NULL, headers_var.AsInput(), bind_ctx,
+ const_cast<wchar_t*>(fragment));
+ } else {
+ IWebBrowserPriv2CommonIE9* browser_priv2_ie9 =
+ reinterpret_cast<IWebBrowserPriv2CommonIE9*>(browser_priv2.get());
+ hr = browser_priv2_ie9->NavigateWithBindCtx2(
+ uri_obj, NULL, NULL, NULL, headers_var.AsInput(), bind_ctx,
+ const_cast<wchar_t*>(fragment), 0);
+ }
DLOG_IF(WARNING, FAILED(hr))
<< base::StringPrintf(L"NavigateWithBindCtx2 0x%08X", hr);
}
« no previous file with comments | « chrome_frame/extra_system_apis.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698