| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "cloud_print/service/win/service_controller.h" | 5 #include "cloud_print/service/win/service_controller.h" |
| 6 | 6 |
| 7 #include <atlbase.h> | 7 #include <atlbase.h> |
| 8 #include <atlcom.h> | 8 #include <atlcom.h> |
| 9 #include <atlctl.h> | 9 #include <atlctl.h> |
| 10 | 10 |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/file_util.h" | |
| 13 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/files/file_util.h" |
| 14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
| 15 #include "base/win/scoped_handle.h" | 15 #include "base/win/scoped_handle.h" |
| 16 #include "chrome/common/chrome_switches.h" | 16 #include "chrome/common/chrome_switches.h" |
| 17 #include "cloud_print/common/win/cloud_print_utils.h" | 17 #include "cloud_print/common/win/cloud_print_utils.h" |
| 18 #include "cloud_print/service/service_constants.h" | 18 #include "cloud_print/service/service_constants.h" |
| 19 #include "cloud_print/service/service_switches.h" | 19 #include "cloud_print/service/service_switches.h" |
| 20 #include "cloud_print/service/win/chrome_launcher.h" | 20 #include "cloud_print/service/win/chrome_launcher.h" |
| 21 #include "cloud_print/service/win/local_security_policy.h" | 21 #include "cloud_print/service/win/local_security_policy.h" |
| 22 #include "cloud_print/service/win/service_utils.h" | 22 #include "cloud_print/service/win/service_utils.h" |
| 23 | 23 |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 state_ = STATE_NOT_FOUND; | 307 state_ = STATE_NOT_FOUND; |
| 308 return; | 308 return; |
| 309 } | 309 } |
| 310 is_logging_enabled_ = command_line_.HasSwitch(switches::kEnableLogging); | 310 is_logging_enabled_ = command_line_.HasSwitch(switches::kEnableLogging); |
| 311 user_ = config->lpServiceStartName; | 311 user_ = config->lpServiceStartName; |
| 312 } | 312 } |
| 313 | 313 |
| 314 bool ServiceController::is_logging_enabled() const { | 314 bool ServiceController::is_logging_enabled() const { |
| 315 return command_line_.HasSwitch(switches::kEnableLogging); | 315 return command_line_.HasSwitch(switches::kEnableLogging); |
| 316 } | 316 } |
| OLD | NEW |