summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/mock_render_thread.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-19 00:09:22 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-19 00:09:22 +0000
commit5cc4c42d46ac837b79333091b110391c2ca1c996 (patch)
tree02764336dcbc316b1725fc614f658f391de8326c /chrome/renderer/mock_render_thread.cc
parent38a0a14f438057e1c8c0ddcf1e903c8d53620141 (diff)
downloadchromium_src-5cc4c42d46ac837b79333091b110391c2ca1c996.zip
chromium_src-5cc4c42d46ac837b79333091b110391c2ca1c996.tar.gz
chromium_src-5cc4c42d46ac837b79333091b110391c2ca1c996.tar.bz2
Linux: Refactor printing to be more linux Windows/Mac.
BUG=41543,59732 TEST=Printing works on Linux and CrOS, Linux printing respect print dialog settings. Review URL: http://codereview.chromium.org/6516022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75475 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/mock_render_thread.cc')
-rw-r--r--chrome/renderer/mock_render_thread.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/renderer/mock_render_thread.cc b/chrome/renderer/mock_render_thread.cc
index f6a26b7..846d2d8 100644
--- a/chrome/renderer/mock_render_thread.cc
+++ b/chrome/renderer/mock_render_thread.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -120,7 +120,7 @@ bool MockRenderThread::OnMessageReceived(const IPC::Message& msg) {
IPC_MESSAGE_HANDLER(ViewHostMsg_AllocateSharedMemoryBuffer,
OnAllocateSharedMemoryBuffer)
#endif
-#if defined(OS_LINUX)
+#if defined(OS_CHROMEOS)
IPC_MESSAGE_HANDLER(ViewHostMsg_AllocateTempFileForPrinting,
OnAllocateTempFileForPrinting)
IPC_MESSAGE_HANDLER(ViewHostMsg_TempFileForPrintingWritten,
@@ -169,7 +169,7 @@ void MockRenderThread::OnAllocateSharedMemoryBuffer(
}
#endif
-#if defined(OS_LINUX)
+#if defined(OS_CHROMEOS)
void MockRenderThread::OnAllocateTempFileForPrinting(
base::FileDescriptor* renderer_fd,
int* browser_fd) {
@@ -187,7 +187,7 @@ void MockRenderThread::OnAllocateTempFileForPrinting(
void MockRenderThread::OnTempFileForPrintingWritten(int browser_fd) {
close(browser_fd);
}
-#endif
+#endif // defined(OS_CHROMEOS)
void MockRenderThread::OnGetDefaultPrintSettings(ViewMsg_Print_Params* params) {
if (printer_.get())