| 1 | From 3cf91d8d674a496d533aa106723a632b68ab26ba Mon Sep 17 00:00:00 2001 |
| 2 | From: Tom Anderson <thomasanderson@chromium.org> |
| 3 | Date: Tue, 12 Dec 2017 23:31:56 +0000 |
| 4 | Subject: [PATCH] Fix use_cups=false build |
| 5 | |
| 6 | BUG=793801 |
| 7 | R=thestig@chromium.org |
| 8 | |
| 9 | Change-Id: I60ee6ec48d2686d0b42ca25311a9b76009ce9768 |
| 10 | Reviewed-on: https://chromium-review.googlesource.com/823245 |
| 11 | Reviewed-by: Lei Zhang <thestig@chromium.org> |
| 12 | Commit-Queue: Thomas Anderson <thomasanderson@chromium.org> |
| 13 | Cr-Commit-Position: refs/heads/master@{#523602} |
| 14 | --- |
| 15 | chrome/service/cloud_print/print_system.cc | 9 ++++++++- |
| 16 | 1 file changed, 8 insertions(+), 1 deletion(-) |
| 17 | |
| 18 | diff --git a/chrome/service/cloud_print/print_system.cc b/chrome/service/cloud_print/print_system.cc |
| 19 | index ac94c804f9..4ceba96919 100644 |
| 20 | --- a/chrome/service/cloud_print/print_system.cc |
| 21 | +++ b/chrome/service/cloud_print/print_system.cc |
| 22 | @@ -5,6 +5,7 @@ |
| 23 | #include "chrome/service/cloud_print/print_system.h" |
| 24 | |
| 25 | #include "base/guid.h" |
| 26 | +#include "build/build_config.h" |
| 27 | |
| 28 | namespace cloud_print { |
| 29 | |
| 30 | @@ -35,5 +36,11 @@ std::string PrintSystem::GenerateProxyId() { |
| 31 | return base::GenerateGUID(); |
| 32 | } |
| 33 | |
| 34 | -} // namespace cloud_print |
| 35 | +#if defined(OS_LINUX) && !defined(USE_CUPS) |
| 36 | +scoped_refptr<PrintSystem> PrintSystem::CreateInstance( |
| 37 | + const base::DictionaryValue*) { |
| 38 | + return nullptr; |
| 39 | +} |
| 40 | +#endif |
| 41 | |
| 42 | +} // namespace cloud_print |
| 43 | -- |
| 44 | 2.15.1 |
| 45 | |