Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(873)

Side by Side Diff: chrome/common/service_process_util.cc

Issue 2444363003: Remove uses of ChannelHandle for service processes. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/common/service_process_util.h ('k') | chrome/common/service_process_util_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/common/service_process_util.h ('k') | chrome/common/service_process_util_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698