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