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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram_macros.h" |
12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
13 #include "base/process/kill.h" | 13 #include "base/process/kill.h" |
14 #include "base/process/launch.h" | 14 #include "base/process/launch.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 #include "chrome/common/chrome_switches.h" | 16 #include "chrome/common/chrome_switches.h" |
17 #include "chrome/common/cloud_print/cloud_print_constants.h" | 17 #include "chrome/common/cloud_print/cloud_print_constants.h" |
18 #include "chrome/common/cloud_print/cloud_print_proxy_info.h" | 18 #include "chrome/common/cloud_print/cloud_print_proxy_info.h" |
19 #include "chrome/common/pref_names.h" | 19 #include "chrome/common/pref_names.h" |
20 #include "chrome/service/cloud_print/print_system.h" | 20 #include "chrome/service/cloud_print/print_system.h" |
21 #include "chrome/service/service_process.h" | 21 #include "chrome/service/service_process.h" |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 } | 245 } |
246 | 246 |
247 void CloudPrintProxy::ShutdownBackend() { | 247 void CloudPrintProxy::ShutdownBackend() { |
248 DCHECK(CalledOnValidThread()); | 248 DCHECK(CalledOnValidThread()); |
249 if (backend_.get()) | 249 if (backend_.get()) |
250 backend_->Shutdown(); | 250 backend_->Shutdown(); |
251 backend_.reset(); | 251 backend_.reset(); |
252 } | 252 } |
253 | 253 |
254 } // namespace cloud_print | 254 } // namespace cloud_print |
OLD | NEW |