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

Unified Diff: sandbox/win/src/broker_services.cc

Issue 1229163002: Sandbox: Remove raw handles from PolicyBase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « no previous file | sandbox/win/src/sandbox_policy_base.h » ('j') | sandbox/win/src/sandbox_policy_base.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/broker_services.cc
diff --git a/sandbox/win/src/broker_services.cc b/sandbox/win/src/broker_services.cc
index dbf75f967ec9d82ddc7000b38ecf2020034551f5..c5a18d30e5323c5510607615117fbd6319b43a0f 100644
--- a/sandbox/win/src/broker_services.cc
+++ b/sandbox/win/src/broker_services.cc
@@ -446,10 +446,10 @@ ResultCode BrokerServicesBase::SpawnTarget(const wchar_t* exe_path,
if (stderr_handle != stdout_handle && stderr_handle != INVALID_HANDLE_VALUE)
inherited_handle_list.push_back(stderr_handle);
- HandleList policy_handle_list = policy_base->GetHandlesBeingShared();
+ const HandleList& policy_handle_list = policy_base->GetHandlesBeingShared();
for (auto handle : policy_handle_list)
- inherited_handle_list.push_back(handle);
+ inherited_handle_list.push_back(handle->Get());
if (inherited_handle_list.size())
++attribute_count;
« no previous file with comments | « no previous file | sandbox/win/src/sandbox_policy_base.h » ('j') | sandbox/win/src/sandbox_policy_base.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698