Index: chrome/renderer/chrome_mock_render_thread.h |
diff --git a/chrome/renderer/chrome_mock_render_thread.h b/chrome/renderer/chrome_mock_render_thread.h |
index 49fe79f45474df1bc506860822ba79bfbc743088..e4214f32bf13c0ac4a312581fcf703cf4efea299 100644 |
--- a/chrome/renderer/chrome_mock_render_thread.h |
+++ b/chrome/renderer/chrome_mock_render_thread.h |
@@ -33,6 +33,7 @@ class ChromeMockRenderThread : public content::MockRenderThread { |
////////////////////////////////////////////////////////////////////////// |
// The following functions are called by the test itself. |
+#if defined(ENABLE_PRINTING) |
// Returns the pseudo-printer instance. |
MockPrinter* printer(); |
@@ -45,6 +46,7 @@ class ChromeMockRenderThread : public content::MockRenderThread { |
// Get the number of pages to generate for print preview. |
int print_preview_pages_remaining() const; |
+#endif |
private: |
// Overrides base class implementation to add custom handling for |
@@ -57,6 +59,7 @@ class ChromeMockRenderThread : public content::MockRenderThread { |
const std::string& channel_name, |
int* port_id); |
+#if defined(ENABLE_PRINTING) |
#if defined(OS_CHROMEOS) |
void OnAllocateTempFileForPrinting(base::FileDescriptor* renderer_fd, |
int* browser_fd); |
@@ -97,6 +100,9 @@ class ChromeMockRenderThread : public content::MockRenderThread { |
// Number of pages to generate for print preview. |
int print_preview_pages_remaining_; |
+#endif |
+ |
+ DISALLOW_COPY_AND_ASSIGN(ChromeMockRenderThread); |
}; |
#endif // CHROME_RENDERER_CHROME_MOCK_RENDER_THREAD_H_ |