| Index: chrome/browser/local_discovery/privet_http_impl.cc
|
| diff --git a/chrome/browser/local_discovery/privet_http_impl.cc b/chrome/browser/local_discovery/privet_http_impl.cc
|
| index a1db1534b0e8140215d32dcb81460995b17a830b..cc490a3897110a7994587bd2e9fec551565f713b 100644
|
| --- a/chrome/browser/local_discovery/privet_http_impl.cc
|
| +++ b/chrome/browser/local_discovery/privet_http_impl.cc
|
| @@ -21,6 +21,10 @@
|
| #include "ui/gfx/text_elider.h"
|
| #include "url/gurl.h"
|
|
|
| +#if defined(ENABLE_FULL_PRINTING)
|
| +#include "chrome/browser/local_discovery/pwg_raster_converter.h"
|
| +#endif // ENABLE_FULL_PRINTING
|
| +
|
| using namespace cloud_devices::printer;
|
|
|
| namespace cloud_print {
|
| @@ -460,6 +464,7 @@ bool PrivetDataReadOperationImpl::OnRawData(PrivetURLFetcher* fetcher,
|
| return true;
|
| }
|
|
|
| +#if defined(ENABLE_FULL_PRINTING)
|
| PrivetLocalPrintOperationImpl::PrivetLocalPrintOperationImpl(
|
| PrivetHTTPClient* privet_client,
|
| PrivetLocalPrintOperation::Delegate* delegate)
|
| @@ -819,6 +824,7 @@ void PrivetLocalPrintOperationImpl::SetPWGRasterConverterForTesting(
|
| scoped_ptr<PWGRasterConverter> pwg_raster_converter) {
|
| pwg_raster_converter_ = pwg_raster_converter.Pass();
|
| }
|
| +#endif // ENABLE_FULL_PRINTING
|
|
|
| PrivetHTTPClientImpl::PrivetHTTPClientImpl(
|
| const std::string& name,
|
| @@ -921,8 +927,12 @@ PrivetV1HTTPClientImpl::CreateCapabilitiesOperation(
|
| scoped_ptr<PrivetLocalPrintOperation>
|
| PrivetV1HTTPClientImpl::CreateLocalPrintOperation(
|
| PrivetLocalPrintOperation::Delegate* delegate) {
|
| +#if defined(ENABLE_FULL_PRINTING)
|
| return scoped_ptr<PrivetLocalPrintOperation>(
|
| new PrivetLocalPrintOperationImpl(info_client(), delegate));
|
| +#else
|
| + return scoped_ptr<PrivetLocalPrintOperation>();
|
| +#endif // ENABLE_FULL_PRINTING
|
| }
|
|
|
| } // namespace local_discovery
|
|
|