#include "base/bind.h"
#include "base/command_line.h"
-#include "base/file_util.h"
+#include "base/files/file_util.h"
#include "base/format_macros.h"
#include "base/guid.h"
#include "base/logging.h"
#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 {
}
std::string GenerateId() {
- return StringToLowerASCII(base::GenerateGUID());
+ return base::StringToLowerASCII(base::GenerateGUID());
}
} // namespace
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;