| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/service/cloud_print/cloud_print_proxy.h" | 5 #include "chrome/service/cloud_print/cloud_print_proxy.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 44 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 45 base::ProcessHandle pid = 0; | 45 base::ProcessHandle pid = 0; |
| 46 base::LaunchProcess(cmd_line, base::LaunchOptions(), &pid); | 46 base::LaunchProcess(cmd_line, base::LaunchOptions(), &pid); |
| 47 base::EnsureProcessGetsReaped(pid); | 47 base::EnsureProcessGetsReaped(pid); |
| 48 #else | 48 #else |
| 49 base::LaunchOptions launch_options; | 49 base::LaunchOptions launch_options; |
| 50 #if defined(OS_WIN) | 50 #if defined(OS_WIN) |
| 51 launch_options.force_breakaway_from_job_ = true; | 51 launch_options.force_breakaway_from_job_ = true; |
| 52 #endif // OS_WIN | 52 #endif // OS_WIN |
| 53 base::LaunchProcess(cmd_line, launch_options, NULL); | 53 base::LaunchProcess(cmd_line, launch_options); |
| 54 #endif | 54 #endif |
| 55 } | 55 } |
| 56 | 56 |
| 57 void CheckCloudPrintProxyPolicyInBrowser() { | 57 void CheckCloudPrintProxyPolicyInBrowser() { |
| 58 LaunchBrowserProcessWithSwitch(switches::kCheckCloudPrintConnectorPolicy); | 58 LaunchBrowserProcessWithSwitch(switches::kCheckCloudPrintConnectorPolicy); |
| 59 } | 59 } |
| 60 | 60 |
| 61 } // namespace | 61 } // namespace |
| 62 | 62 |
| 63 namespace cloud_print { | 63 namespace cloud_print { |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 } | 286 } |
| 287 | 287 |
| 288 void CloudPrintProxy::ShutdownBackend() { | 288 void CloudPrintProxy::ShutdownBackend() { |
| 289 DCHECK(CalledOnValidThread()); | 289 DCHECK(CalledOnValidThread()); |
| 290 if (backend_.get()) | 290 if (backend_.get()) |
| 291 backend_->Shutdown(); | 291 backend_->Shutdown(); |
| 292 backend_.reset(); | 292 backend_.reset(); |
| 293 } | 293 } |
| 294 | 294 |
| 295 } // namespace cloud_print | 295 } // namespace cloud_print |
| OLD | NEW |