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

Side by Side Diff: content/common/child_process_host_impl.cc

Issue 1000203008: Fix a typo on Process::OpenWithExtraPrivileges (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months 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
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 "content/common/child_process_host_impl.h" 5 #include "content/common/child_process_host_impl.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/atomic_sequence_num.h" 9 #include "base/atomic_sequence_num.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 268
269 #ifdef IPC_MESSAGE_LOG_ENABLED 269 #ifdef IPC_MESSAGE_LOG_ENABLED
270 if (logger->Enabled()) 270 if (logger->Enabled())
271 logger->OnPostDispatchMessage(msg, channel_id_); 271 logger->OnPostDispatchMessage(msg, channel_id_);
272 #endif 272 #endif
273 return handled; 273 return handled;
274 } 274 }
275 275
276 void ChildProcessHostImpl::OnChannelConnected(int32 peer_pid) { 276 void ChildProcessHostImpl::OnChannelConnected(int32 peer_pid) {
277 if (!peer_process_.IsValid()) { 277 if (!peer_process_.IsValid()) {
278 peer_process_ = base::Process::OpenWithExtraPriviles(peer_pid); 278 peer_process_ = base::Process::OpenWithExtraPrivileges(peer_pid);
279 if (!peer_process_.IsValid()) 279 if (!peer_process_.IsValid())
280 peer_process_ = delegate_->GetProcess().Duplicate(); 280 peer_process_ = delegate_->GetProcess().Duplicate();
281 DCHECK(peer_process_.IsValid()); 281 DCHECK(peer_process_.IsValid());
282 } 282 }
283 opening_channel_ = false; 283 opening_channel_ = false;
284 delegate_->OnChannelConnected(peer_pid); 284 delegate_->OnChannelConnected(peer_pid);
285 for (size_t i = 0; i < filters_.size(); ++i) 285 for (size_t i = 0; i < filters_.size(); ++i)
286 filters_[i]->OnChannelConnected(peer_pid); 286 filters_[i]->OnChannelConnected(peer_pid);
287 } 287 }
288 288
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 } 339 }
340 340
341 void ChildProcessHostImpl::OnDeletedGpuMemoryBuffer( 341 void ChildProcessHostImpl::OnDeletedGpuMemoryBuffer(
342 gfx::GpuMemoryBufferId id, 342 gfx::GpuMemoryBufferId id,
343 uint32 sync_point) { 343 uint32 sync_point) {
344 // Note: Nothing to do here as ownership of shared memory backed 344 // Note: Nothing to do here as ownership of shared memory backed
345 // GpuMemoryBuffers is passed with IPC. 345 // GpuMemoryBuffers is passed with IPC.
346 } 346 }
347 347
348 } // namespace content 348 } // namespace content
OLDNEW
« no previous file with comments | « components/nacl/broker/nacl_broker_listener.cc ('k') | content/public/browser/browser_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698