| Index: cloud_print/gcp20/prototype/gcp20_device.cc
|
| diff --git a/cloud_print/gcp20/prototype/gcp20_device.cc b/cloud_print/gcp20/prototype/gcp20_device.cc
|
| index 9bb71b10d20f2c00ec5d21f6ec1a5943ce0e41d6..d174107ad912cb4e608d8250231c41f33347313f 100644
|
| --- a/cloud_print/gcp20/prototype/gcp20_device.cc
|
| +++ b/cloud_print/gcp20/prototype/gcp20_device.cc
|
| @@ -50,14 +50,15 @@ void OnAbort(int val) {
|
| int main(int argc, char* argv[]) {
|
| base::AtExitManager at_exit;
|
| Printer printer;
|
| - CommandLine::Init(argc, argv);
|
| + base::CommandLine::Init(argc, argv);
|
| + base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
|
|
|
| logging::LoggingSettings settings;
|
| settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG;
|
| logging::InitLogging(settings);
|
|
|
| - if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kHelp) ||
|
| - CommandLine::ForCurrentProcess()->HasSwitch(switches::kHelpShort)) {
|
| + if (command_line->HasSwitch(switches::kHelp) ||
|
| + command_line->HasSwitch(switches::kHelpShort)) {
|
| switches::PrintUsage();
|
| return 0;
|
| }
|
|
|