Index: cloud_print/gcp20/prototype/print_job_handler.cc |
diff --git a/cloud_print/gcp20/prototype/print_job_handler.cc b/cloud_print/gcp20/prototype/print_job_handler.cc |
index 946d5d57384405c538d2b98a7f4efd953d349188..28bf21c504a8eadcd21feba659710452dff34bf9 100644 |
--- a/cloud_print/gcp20/prototype/print_job_handler.cc |
+++ b/cloud_print/gcp20/prototype/print_job_handler.cc |
@@ -15,6 +15,7 @@ |
#include "base/strings/string_util.h" |
#include "base/strings/stringprintf.h" |
#include "base/time/time.h" |
+#include "cloud_print/gcp20/prototype/gcp20_switches.h" |
namespace { |
@@ -84,7 +85,8 @@ LocalPrintJob::CreateResult PrintJobHandler::CreatePrintJob( |
return LocalPrintJob::CREATE_INVALID_TICKET; |
// Let's simulate at least some errors just for testing. |
- if (CommandLine::ForCurrentProcess()->HasSwitch("simulate-printing-errors")) { |
+ if (CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kSimulatePrintingErrors)) { |
if (base::RandDouble() <= kPaperJamProbability) { |
*error_description = "Paper jam, try again"; |
return LocalPrintJob::CREATE_PRINTER_ERROR; |