summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-30 03:35:35 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-30 03:35:35 +0000
commit2be896025b2f71e303831b788e224d92795e064c (patch)
tree32734a96f44c978480fd3a12f894f88eb8e40b9a /chrome/renderer
parentaf28142ce70a1b60d1bfc18e899764575b95b506 (diff)
downloadchromium_src-2be896025b2f71e303831b788e224d92795e064c.zip
chromium_src-2be896025b2f71e303831b788e224d92795e064c.tar.gz
chromium_src-2be896025b2f71e303831b788e224d92795e064c.tar.bz2
Print Preview: Fix an error in error logging.
Review URL: http://codereview.chromium.org/7794013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98768 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/print_web_view_helper.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/chrome/renderer/print_web_view_helper.cc b/chrome/renderer/print_web_view_helper.cc
index 18a7eb3..05cd40c 100644
--- a/chrome/renderer/print_web_view_helper.cc
+++ b/chrome/renderer/print_web_view_helper.cc
@@ -4,10 +4,6 @@
#include "chrome/renderer/print_web_view_helper.h"
-#if defined(OS_MACOSX) && !defined(USE_SKIA)
-#include <CoreGraphics/CGContext.h>
-#endif
-
#include <string>
#include "base/command_line.h"
@@ -49,6 +45,8 @@
#include "skia/ext/vector_platform_device_skia.h"
#include "third_party/skia/include/core/SkTypeface.h"
#elif defined(OS_MACOSX)
+#include <CoreGraphics/CGContext.h>
+
#include "base/mac/scoped_cftyperef.h"
#include "base/sys_string_conversions.h"
#include "ui/gfx/scoped_cg_context_save_gstate_mac.h"
@@ -734,7 +732,7 @@ bool PrintWebViewHelper::FinalizePreviewDocument() {
void PrintWebViewHelper::OnPrintingDone(bool success) {
notify_browser_of_print_failure_ = false;
- if (success == FAIL_PRINT)
+ if (!success)
LOG(ERROR) << "Failure in OnPrintingDone";
DidFinishPrinting(success ? OK : FAIL_PRINT);
}