| 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 "content/utility/utility_thread_impl.h" | 5 #include "content/utility/utility_thread_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 void UtilityThreadImpl::OnBatchModeStarted() { | 115 void UtilityThreadImpl::OnBatchModeStarted() { |
| 116 batch_mode_ = true; | 116 batch_mode_ = true; |
| 117 } | 117 } |
| 118 | 118 |
| 119 void UtilityThreadImpl::OnBatchModeFinished() { | 119 void UtilityThreadImpl::OnBatchModeFinished() { |
| 120 batch_mode_ = false; | 120 batch_mode_ = false; |
| 121 ReleaseProcessIfNeeded(); | 121 ReleaseProcessIfNeeded(); |
| 122 } | 122 } |
| 123 | 123 |
| 124 void UtilityThreadImpl::BindServiceFactoryRequest( | 124 void UtilityThreadImpl::BindServiceFactoryRequest( |
| 125 shell::mojom::ServiceFactoryRequest request) { | 125 service_manager::mojom::ServiceFactoryRequest request) { |
| 126 DCHECK(service_factory_); | 126 DCHECK(service_factory_); |
| 127 service_factory_bindings_.AddBinding(service_factory_.get(), | 127 service_factory_bindings_.AddBinding(service_factory_.get(), |
| 128 std::move(request)); | 128 std::move(request)); |
| 129 } | 129 } |
| 130 | 130 |
| 131 } // namespace content | 131 } // namespace content |
| OLD | NEW |