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

Unified Diff: content/common/child_process_host_impl.cc

Issue 377723002: Fixes for re-enabling more MSVC level 4 warnings: content/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/webcrypto/shared_crypto.cc ('k') | content/common/gpu/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/child_process_host_impl.cc
diff --git a/content/common/child_process_host_impl.cc b/content/common/child_process_host_impl.cc
index 1dccab0838504ffffcf51186cfaf5d23b451b06d..6fa01994a14182149fc320a2c5aa694a48648171 100644
--- a/content/common/child_process_host_impl.cc
+++ b/content/common/child_process_host_impl.cc
@@ -271,9 +271,9 @@ bool ChildProcessHostImpl::OnMessageReceived(const IPC::Message& msg) {
void ChildProcessHostImpl::OnChannelConnected(int32 peer_pid) {
if (!peer_handle_ &&
- !base::OpenPrivilegedProcessHandle(peer_pid, &peer_handle_) &&
- !(peer_handle_ = delegate_->GetHandle())) {
- NOTREACHED();
+ !base::OpenPrivilegedProcessHandle(peer_pid, &peer_handle_)) {
+ peer_handle_ = delegate_->GetHandle();
+ DCHECK(peer_handle_);
}
opening_channel_ = false;
delegate_->OnChannelConnected(peer_pid);
« no previous file with comments | « content/child/webcrypto/shared_crypto.cc ('k') | content/common/gpu/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698