Index: chrome/browser/extensions/api/cloud_print_private/cloud_print_private_api.cc |
diff --git a/chrome/browser/extensions/api/cloud_print_private/cloud_print_private_api.cc b/chrome/browser/extensions/api/cloud_print_private/cloud_print_private_api.cc |
index a2529d6e6736615ec2d3f236fb6ba330eb313fd6..f4025f291d317b97bfa340355c897dc68b83b247 100644 |
--- a/chrome/browser/extensions/api/cloud_print_private/cloud_print_private_api.cc |
+++ b/chrome/browser/extensions/api/cloud_print_private/cloud_print_private_api.cc |
@@ -39,6 +39,7 @@ CloudPrintPrivateSetupConnectorFunction:: |
bool CloudPrintPrivateSetupConnectorFunction::RunImpl() { |
+#if defined(ENABLE_FULL_PRINTING) |
using api::cloud_print_private::SetupConnector::Params; |
scoped_ptr<Params> params(Params::Create(*args_)); |
if (CloudPrintTestsDelegate::instance()) { |
@@ -59,6 +60,7 @@ bool CloudPrintPrivateSetupConnectorFunction::RunImpl() { |
*user_setings); |
} |
SendResponse(true); |
+#endif |
return true; |
} |
@@ -84,6 +86,7 @@ CloudPrintPrivateGetPrintersFunction::~CloudPrintPrivateGetPrintersFunction() { |
} |
void CloudPrintPrivateGetPrintersFunction::CollectPrinters() { |
+#if defined(ENABLE_FULL_PRINTING) |
std::vector<std::string> result; |
if (CloudPrintTestsDelegate::instance()) { |
result = CloudPrintTestsDelegate::instance()->GetPrinters(); |
@@ -94,6 +97,7 @@ void CloudPrintPrivateGetPrintersFunction::CollectPrinters() { |
content::BrowserThread::PostTask(content::BrowserThread::UI, FROM_HERE, |
base::Bind(&CloudPrintPrivateGetPrintersFunction::SendResponse, |
this, true)); |
+#endif |
} |