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

Unified Diff: chrome_frame/urlmon_url_request.cc

Issue 1589013: Switch renderer in Moniker patch... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 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
Index: chrome_frame/urlmon_url_request.cc
===================================================================
--- chrome_frame/urlmon_url_request.cc (revision 43957)
+++ chrome_frame/urlmon_url_request.cc (working copy)
@@ -41,21 +41,7 @@
// StartAsyncDownload if BindToStorage finishes synchronously with an error.
// Grab a reference to protect against this.
scoped_refptr<UrlmonUrlRequest> ref(this);
- HRESULT hr = E_UNEXPECTED;
- if (request_data_) {
- DCHECK(bind_context_ == NULL);
- hr = CreateAsyncBindCtxEx(NULL, 0, this, NULL, bind_context_.Receive(), 0);
- DCHECK(SUCCEEDED(hr));
- CComObject<SimpleBindingImpl>* binding = NULL;
- CComObject<SimpleBindingImpl>::CreateInstance(&binding);
- binding->AddRef();
- hr = MonikerPatch::BindToStorageFromCache(bind_context_, NULL,
- request_data_, binding, NULL);
- binding->Release();
- } else {
- hr = StartAsyncDownload();
- }
-
+ HRESULT hr = StartAsyncDownload();
if (FAILED(hr) && status_.get_state() != UrlmonUrlRequest::Status::DONE) {
status_.Done();
status_.set_result(URLRequestStatus::FAILED, HresultToNetError(hr));

Powered by Google App Engine
This is Rietveld 408576698