Chromium Code Reviews| Index: chrome/browser/ui/webui/print_preview_ui_html_source.cc |
| diff --git a/chrome/browser/ui/webui/print_preview_ui_html_source.cc b/chrome/browser/ui/webui/print_preview_ui_html_source.cc |
| index be4b583b5190583bb94e9ab2cc247e53f21d8651..f23d87ad66c05bad3f2d787c2854a6a545d5a790 100644 |
| --- a/chrome/browser/ui/webui/print_preview_ui_html_source.cc |
| +++ b/chrome/browser/ui/webui/print_preview_ui_html_source.cc |
| @@ -160,6 +160,11 @@ void PrintPreviewUIHTMLSource::StartDataRequest(const std::string& path, |
| *it = *(preview_data + i); |
| SendResponse(request_id, html_bytes); |
| return; |
| + } else if (path == "dummy.pdf") { |
|
vandebo (ex-Chrome)
2011/05/12 02:10:12
It occurs to me that since the plugin doesn't need
Lei Zhang
2011/05/12 02:19:34
I would double check and make sure that doesn't cr
dpapad
2011/05/12 17:26:44
Removed the "else if". As far as detecting the exi
Lei Zhang
2011/05/12 17:50:45
Well, if it crashes, then it is taking down the re
|
| + scoped_refptr<RefCountedStaticMemory> dummy_bytes( |
| + new RefCountedStaticMemory()); |
| + SendResponse(request_id, dummy_bytes); |
| + return; |
| } else { |
| // Invalid request. |
| scoped_refptr<RefCountedBytes> empty_bytes(new RefCountedBytes); |