Commit 4686a2a4 authored by dgn's avatar dgn Committed by Commit bot

Style fixes.

Review URL: https://codereview.chromium.org/905573003

Cr-Commit-Position: refs/heads/master@{#314915}
parent eb640d0e
...@@ -66,7 +66,6 @@ class PrintWebViewHelper ...@@ -66,7 +66,6 @@ class PrintWebViewHelper
: public content::RenderViewObserver, : public content::RenderViewObserver,
public content::RenderViewObserverTracker<PrintWebViewHelper> { public content::RenderViewObserverTracker<PrintWebViewHelper> {
public: public:
class Delegate { class Delegate {
public: public:
virtual ~Delegate() {} virtual ~Delegate() {}
......
...@@ -118,8 +118,9 @@ bool PrintWebViewHelper::PrintPagesNative(blink::WebFrame* frame, ...@@ -118,8 +118,9 @@ bool PrintWebViewHelper::PrintPagesNative(blink::WebFrame* frame,
{ {
scoped_ptr<base::SharedMemory> shared_mem( scoped_ptr<base::SharedMemory> shared_mem(
content::RenderThread::Get()->HostAllocateSharedMemoryBuffer( content::RenderThread::Get()
buf_size).release()); ->HostAllocateSharedMemoryBuffer(buf_size)
.release());
if (!shared_mem.get()) { if (!shared_mem.get()) {
NOTREACHED() << "AllocateSharedMemoryBuffer failed"; NOTREACHED() << "AllocateSharedMemoryBuffer failed";
return false; return false;
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#include "skia/ext/vector_canvas.h" #include "skia/ext/vector_canvas.h"
#include "third_party/WebKit/public/web/WebLocalFrame.h" #include "third_party/WebKit/public/web/WebLocalFrame.h"
namespace printing { namespace printing {
using blink::WebFrame; using blink::WebFrame;
...@@ -160,10 +159,10 @@ void PrintWebViewHelper::PrintPageInternal( ...@@ -160,10 +159,10 @@ void PrintWebViewHelper::PrintPageInternal(
// Calculate the actual page size and content area in dpi. // Calculate the actual page size and content area in dpi.
if (page_size_in_dpi) { if (page_size_in_dpi) {
*page_size_in_dpi = *page_size_in_dpi =
gfx::Size(static_cast<int>(ConvertUnitDouble( gfx::Size(static_cast<int>(ConvertUnitDouble(page_size.width(),
page_size.width(), kPointsPerInch, dpi)), kPointsPerInch, dpi)),
static_cast<int>(ConvertUnitDouble( static_cast<int>(ConvertUnitDouble(page_size.height(),
page_size.height(), kPointsPerInch, dpi))); kPointsPerInch, dpi)));
} }
if (content_area_in_dpi) { if (content_area_in_dpi) {
......
...@@ -161,9 +161,9 @@ class PrintWebViewHelperTestBase : public content::RenderViewTest { ...@@ -161,9 +161,9 @@ class PrintWebViewHelperTestBase : public content::RenderViewTest {
// Verify the page count is correct. // Verify the page count is correct.
void VerifyPageCount(int count) { void VerifyPageCount(int count) {
#if defined(OS_CHROMEOS) #if defined(OS_CHROMEOS)
// The DidGetPrintedPagesCount message isn't sent on ChromeOS. Right now we // The DidGetPrintedPagesCount message isn't sent on ChromeOS. Right now we
// always print all pages, and there are checks to that effect built into // always print all pages, and there are checks to that effect built into
// the print code. // the print code.
#else #else
const IPC::Message* page_cnt_msg = const IPC::Message* page_cnt_msg =
render_thread_->sink().GetUniqueMessageMatching( render_thread_->sink().GetUniqueMessageMatching(
......
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