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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 22750002: Move AlterEnvironment to base/environment.h, implement on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments. Created 7 years, 4 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 | Annotate | Revision Log
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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id); 545 cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id);
546 546
547 // Spawn the child process asynchronously to avoid blocking the UI thread. 547 // Spawn the child process asynchronously to avoid blocking the UI thread.
548 // As long as there's no renderer prefix, we can use the zygote process 548 // As long as there's no renderer prefix, we can use the zygote process
549 // at this stage. 549 // at this stage.
550 child_process_launcher_.reset(new ChildProcessLauncher( 550 child_process_launcher_.reset(new ChildProcessLauncher(
551 #if defined(OS_WIN) 551 #if defined(OS_WIN)
552 new RendererSandboxedProcessLauncherDelegate, 552 new RendererSandboxedProcessLauncherDelegate,
553 #elif defined(OS_POSIX) 553 #elif defined(OS_POSIX)
554 renderer_prefix.empty(), 554 renderer_prefix.empty(),
555 base::EnvironmentVector(), 555 base::EnvironmentMap(),
556 channel_->TakeClientFileDescriptor(), 556 channel_->TakeClientFileDescriptor(),
557 #endif 557 #endif
558 cmd_line, 558 cmd_line,
559 GetID(), 559 GetID(),
560 this)); 560 this));
561 561
562 fast_shutdown_started_ = false; 562 fast_shutdown_started_ = false;
563 } 563 }
564 564
565 if (!gpu_observer_registered_) { 565 if (!gpu_observer_registered_) {
(...skipping 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after
1804 // Skip widgets in other processes. 1804 // Skip widgets in other processes.
1805 if (widgets[i]->GetProcess()->GetID() != GetID()) 1805 if (widgets[i]->GetProcess()->GetID() != GetID())
1806 continue; 1806 continue;
1807 1807
1808 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); 1808 RenderViewHost* rvh = RenderViewHost::From(widgets[i]);
1809 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1809 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1810 } 1810 }
1811 } 1811 }
1812 1812
1813 } // namespace content 1813 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698