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

Side by Side Diff: content/browser/utility_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: fix win Created 7 years, 3 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 #include "content/browser/utility_process_host_impl.h" 5 #include "content/browser/utility_process_host_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 void UtilityProcessHostImpl::EnableZygote() { 123 void UtilityProcessHostImpl::EnableZygote() {
124 use_linux_zygote_ = true; 124 use_linux_zygote_ = true;
125 } 125 }
126 126
127 const ChildProcessData& UtilityProcessHostImpl::GetData() { 127 const ChildProcessData& UtilityProcessHostImpl::GetData() {
128 return process_->GetData(); 128 return process_->GetData();
129 } 129 }
130 130
131 #if defined(OS_POSIX) 131 #if defined(OS_POSIX)
132 132
133 void UtilityProcessHostImpl::SetEnv(const base::EnvironmentVector& env) { 133 void UtilityProcessHostImpl::SetEnv(const base::EnvironmentMap& env) {
134 env_ = env; 134 env_ = env;
135 } 135 }
136 136
137 #endif // OS_POSIX 137 #endif // OS_POSIX
138 138
139 bool UtilityProcessHostImpl::StartProcess() { 139 bool UtilityProcessHostImpl::StartProcess() {
140 if (started_) 140 if (started_)
141 return true; 141 return true;
142 started_ = true; 142 started_ = true;
143 143
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 } 244 }
245 245
246 void UtilityProcessHostImpl::OnProcessCrashed(int exit_code) { 246 void UtilityProcessHostImpl::OnProcessCrashed(int exit_code) {
247 client_task_runner_->PostTask( 247 client_task_runner_->PostTask(
248 FROM_HERE, 248 FROM_HERE,
249 base::Bind(&UtilityProcessHostClient::OnProcessCrashed, client_.get(), 249 base::Bind(&UtilityProcessHostClient::OnProcessCrashed, client_.get(),
250 exit_code)); 250 exit_code));
251 } 251 }
252 252
253 } // namespace content 253 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/utility_process_host_impl.h ('k') | content/browser/worker_host/worker_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698