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

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: 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 #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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 void UtilityProcessHostImpl::EnableZygote() { 165 void UtilityProcessHostImpl::EnableZygote() {
166 use_linux_zygote_ = true; 166 use_linux_zygote_ = true;
167 } 167 }
168 168
169 const ChildProcessData& UtilityProcessHostImpl::GetData() { 169 const ChildProcessData& UtilityProcessHostImpl::GetData() {
170 return process_->GetData(); 170 return process_->GetData();
171 } 171 }
172 172
173 #if defined(OS_POSIX) 173 #if defined(OS_POSIX)
174 174
175 void UtilityProcessHostImpl::SetEnv(const base::EnvironmentVector& env) { 175 void UtilityProcessHostImpl::SetEnv(const base::EnvironmentMap& env) {
176 env_ = env; 176 env_ = env;
177 } 177 }
178 178
179 #endif // OS_POSIX 179 #endif // OS_POSIX
180 180
181 bool UtilityProcessHostImpl::StartProcess() { 181 bool UtilityProcessHostImpl::StartProcess() {
182 if (started_) 182 if (started_)
183 return true; 183 return true;
184 started_ = true; 184 started_ = true;
185 185
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 } 288 }
289 289
290 void UtilityProcessHostImpl::OnProcessCrashed(int exit_code) { 290 void UtilityProcessHostImpl::OnProcessCrashed(int exit_code) {
291 client_task_runner_->PostTask( 291 client_task_runner_->PostTask(
292 FROM_HERE, 292 FROM_HERE,
293 base::Bind(&UtilityProcessHostClient::OnProcessCrashed, client_.get(), 293 base::Bind(&UtilityProcessHostClient::OnProcessCrashed, client_.get(),
294 exit_code)); 294 exit_code));
295 } 295 }
296 296
297 } // namespace content 297 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698