| 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/common/service_process_util.h" | 5 #include "chrome/common/service_process_util.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 reinterpret_cast<ServiceProcessSharedData*>( | 273 reinterpret_cast<ServiceProcessSharedData*>( |
| 274 shared_mem_service_data->memory()); | 274 shared_mem_service_data->memory()); |
| 275 memcpy(shared_data->service_process_version, | 275 memcpy(shared_data->service_process_version, |
| 276 version_info::GetVersionNumber().c_str(), | 276 version_info::GetVersionNumber().c_str(), |
| 277 version_info::GetVersionNumber().length()); | 277 version_info::GetVersionNumber().length()); |
| 278 shared_data->service_process_pid = base::GetCurrentProcId(); | 278 shared_data->service_process_pid = base::GetCurrentProcId(); |
| 279 shared_mem_service_data_ = std::move(shared_mem_service_data); | 279 shared_mem_service_data_ = std::move(shared_mem_service_data); |
| 280 return true; | 280 return true; |
| 281 } | 281 } |
| 282 | 282 |
| 283 IPC::ChannelHandle ServiceProcessState::GetServiceProcessChannel() { | 283 mojo::edk::NamedPlatformHandle ServiceProcessState::GetServiceProcessChannel() { |
| 284 return ::GetServiceProcessChannel(); | 284 return ::GetServiceProcessChannel(); |
| 285 } | 285 } |
| 286 | 286 |
| 287 #endif // !OS_MACOSX | 287 #endif // !OS_MACOSX |
| OLD | NEW |