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

Unified Diff: chrome/browser/ui/webui/print_preview_ui_html_source.cc

Issue 6982030: Print Preview: Detecting plugin existence before generating the preview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing nit Created 9 years, 7 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/browser/resources/print_preview.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « chrome/browser/resources/print_preview.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698