Index: pdf/out_of_process_instance.cc |
diff --git a/pdf/out_of_process_instance.cc b/pdf/out_of_process_instance.cc |
index eb1c17a022a4d67a78c2a5c83f29e1c109e630a3..981bfaf8d3753dd6b02736488506597bfaa72873 100644 |
--- a/pdf/out_of_process_instance.cc |
+++ b/pdf/out_of_process_instance.cc |
@@ -855,6 +855,15 @@ |
NOTREACHED(); |
DocumentLoadFailed(); |
} |
+ |
+ // If it's a progressive load, cancel the stream URL request so that requests |
+ // can be made on the original URL. |
+ // TODO(raymes): Make this clearer once the in-process plugin is deleted. |
+ if (engine_->IsProgressiveLoad()) { |
+ pp::VarDictionary message; |
+ message.Set(kType, kJSCancelStreamUrlType); |
+ PostMessage(message); |
+ } |
} |
void OutOfProcessInstance::DidOpenPreview(int32_t result) { |
@@ -1492,12 +1501,6 @@ |
return background_color_; |
} |
-void OutOfProcessInstance::CancelBrowserDownload() { |
- pp::VarDictionary message; |
- message.Set(kType, kJSCancelStreamUrlType); |
- PostMessage(message); |
-} |
- |
void OutOfProcessInstance::IsSelectingChanged(bool is_selecting) { |
pp::VarDictionary message; |
message.Set(kType, kJSSetIsSelectingType); |