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