Commit 2be89602 authored by thestig@chromium.org's avatar thestig@chromium.org

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
parent af28142c
...@@ -4,10 +4,6 @@ ...@@ -4,10 +4,6 @@
#include "chrome/renderer/print_web_view_helper.h" #include "chrome/renderer/print_web_view_helper.h"
#if defined(OS_MACOSX) && !defined(USE_SKIA)
#include <CoreGraphics/CGContext.h>
#endif
#include <string> #include <string>
#include "base/command_line.h" #include "base/command_line.h"
...@@ -49,6 +45,8 @@ ...@@ -49,6 +45,8 @@
#include "skia/ext/vector_platform_device_skia.h" #include "skia/ext/vector_platform_device_skia.h"
#include "third_party/skia/include/core/SkTypeface.h" #include "third_party/skia/include/core/SkTypeface.h"
#elif defined(OS_MACOSX) #elif defined(OS_MACOSX)
#include <CoreGraphics/CGContext.h>
#include "base/mac/scoped_cftyperef.h" #include "base/mac/scoped_cftyperef.h"
#include "base/sys_string_conversions.h" #include "base/sys_string_conversions.h"
#include "ui/gfx/scoped_cg_context_save_gstate_mac.h" #include "ui/gfx/scoped_cg_context_save_gstate_mac.h"
...@@ -734,7 +732,7 @@ bool PrintWebViewHelper::FinalizePreviewDocument() { ...@@ -734,7 +732,7 @@ bool PrintWebViewHelper::FinalizePreviewDocument() {
void PrintWebViewHelper::OnPrintingDone(bool success) { void PrintWebViewHelper::OnPrintingDone(bool success) {
notify_browser_of_print_failure_ = false; notify_browser_of_print_failure_ = false;
if (success == FAIL_PRINT) if (!success)
LOG(ERROR) << "Failure in OnPrintingDone"; LOG(ERROR) << "Failure in OnPrintingDone";
DidFinishPrinting(success ? OK : FAIL_PRINT); DidFinishPrinting(success ? OK : FAIL_PRINT);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment