Index: pdf/out_of_process_instance.cc |
diff --git a/pdf/out_of_process_instance.cc b/pdf/out_of_process_instance.cc |
index f26f18b02abf5794142973705d43e0252b1db559..a1b2d4a3e1eea0f7996208377cee0abee516d8c2 100644 |
--- a/pdf/out_of_process_instance.cc |
+++ b/pdf/out_of_process_instance.cc |
@@ -848,15 +848,6 @@ void OutOfProcessInstance::DidOpen(int32_t result) { |
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) { |
@@ -1478,6 +1469,12 @@ uint32_t OutOfProcessInstance::GetBackgroundColor() { |
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); |