Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10899)

Unified Diff: chrome/renderer/printing/print_web_view_helper_linux.cc

Issue 23264035: Merge 218339 "Submitting https://codereview.chromium.org/2311600..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1599/src/
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/printing/print_web_view_helper_android.cc ('k') | printing/image_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/printing/print_web_view_helper_linux.cc
===================================================================
--- chrome/renderer/printing/print_web_view_helper_linux.cc (revision 218991)
+++ chrome/renderer/printing/print_web_view_helper_linux.cc (working copy)
@@ -4,10 +4,8 @@
#include "chrome/renderer/printing/print_web_view_helper.h"
-#include "base/file_descriptor_posix.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
-#include "base/metrics/histogram.h"
#include "chrome/common/print_messages.h"
#include "content/public/renderer/render_thread.h"
#include "printing/metafile.h"
@@ -18,9 +16,11 @@
#include "skia/ext/vector_canvas.h"
#include "third_party/WebKit/public/web/WebFrame.h"
-#if !defined(OS_CHROMEOS)
+#if !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
#include "base/process/process_handle.h"
-#endif // !defined(OS_CHROMEOS)
+#else
+#include "base/file_descriptor_posix.h"
+#endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
namespace printing {
@@ -101,12 +101,14 @@
uint32 buf_size = metafile.GetDataSize();
DCHECK_GT(buf_size, 0u);
-#if defined(OS_CHROMEOS)
+#if defined(OS_CHROMEOS) || defined(OS_ANDROID)
int sequence_number = -1;
base::FileDescriptor fd;
// Ask the browser to open a file for us.
- Send(new PrintHostMsg_AllocateTempFileForPrinting(&fd, &sequence_number));
+ Send(new PrintHostMsg_AllocateTempFileForPrinting(routing_id(),
+ &fd,
+ &sequence_number));
if (!metafile.SaveToFD(fd))
return false;
« no previous file with comments | « chrome/renderer/printing/print_web_view_helper_android.cc ('k') | printing/image_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698