From 378f0e82d196573004b1f0efe58ccc067774368d Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Tue, 28 Apr 2009 15:27:12 +0000 Subject: Should handle the events when no printer is detected on local machineGetDefaultPrintSettings was returning an empty struct because no printer is installed. Checking when its empty will allow us to know that a printer is missing on that system. There is clearly no other way to do this, unless we do not do all those dchecks on dpi and other struct members.BUG=6835TEST=Tested only on windows, since linux/mac printing not even implemented. Removed all printer drivers, opened chromium, and ran a print job, popup dialog appeared stating no printer installed. Installed my printer drivers again, print dialog appeared. Patch contributed by Mohamed Mansour Review: http://codereview.chromium.org/100023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14731 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/app/generated_resources.grd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'chrome/app') diff --git a/chrome/app/generated_resources.grd b/chrome/app/generated_resources.grd index ad9f703..27ca552 100644 --- a/chrome/app/generated_resources.grd +++ b/chrome/app/generated_resources.grd @@ -2363,10 +2363,13 @@ each locale. --> Update server not available (error: $11) - + Untitled Document + + No printer found, Please install a printer. + -- cgit v1.1