summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/print_web_view_helper.cc
diff options
context:
space:
mode:
authorkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-22 17:32:12 +0000
committerkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-22 17:32:12 +0000
commite675f7b8eed8528ad29fd2c77e7562a8369319ea (patch)
tree6a99cbb3a7da207281265825054c453b4bd79c71 /chrome/renderer/print_web_view_helper.cc
parent723474eba2e68aa6c6d5a864ff1e6dcb9b014a77 (diff)
downloadchromium_src-e675f7b8eed8528ad29fd2c77e7562a8369319ea.zip
chromium_src-e675f7b8eed8528ad29fd2c77e7562a8369319ea.tar.gz
chromium_src-e675f7b8eed8528ad29fd2c77e7562a8369319ea.tar.bz2
Coverity: Fix unchecked returns.
CID = 17626, 17123, 15395, 15394 BUG=none TEST=none Review URL: http://codereview.chromium.org/7206049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90046 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/print_web_view_helper.cc')
-rw-r--r--chrome/renderer/print_web_view_helper.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/renderer/print_web_view_helper.cc b/chrome/renderer/print_web_view_helper.cc
index 18ddb05..6f40d54 100644
--- a/chrome/renderer/print_web_view_helper.cc
+++ b/chrome/renderer/print_web_view_helper.cc
@@ -350,7 +350,8 @@ void PrintWebViewHelper::PrintPreview(WebKit::WebFrame* frame,
}
bool draft;
- settings.GetBoolean(printing::kSettingDraftDocument, &draft);
+ if (!settings.GetBoolean(printing::kSettingDraftDocument, &draft))
+ draft = false;
// Render Pages for printing.
if (!RenderPagesForPreview(frame, node, draft))