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

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

Issue 1122163002: Ensure that the DirectWrite font cache works in Chrome canary on Windows 8+ with AppContainer prote… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
Index: sandbox/win/src/broker_services.cc
diff --git a/sandbox/win/src/broker_services.cc b/sandbox/win/src/broker_services.cc
index 149218fa28eacd9366d9c2f471330191ce739b28..68b73be8967975a8d8ef5f00e6d300969507b836 100644
--- a/sandbox/win/src/broker_services.cc
+++ b/sandbox/win/src/broker_services.cc
@@ -439,6 +439,12 @@ ResultCode BrokerServicesBase::SpawnTarget(const wchar_t* exe_path,
// Handles in the list must be unique.
if (stderr_handle != stdout_handle && stderr_handle != INVALID_HANDLE_VALUE)
inherit_handle_list[inherit_handle_count++] = stderr_handle;
+
+ HandleList handle_list = policy_base->GetHandlesBeingShared();
+ if (!handle_list.empty()) {
+ for (size_t i = 0; i < handle_list.size(); ++i)
+ inherit_handle_list[inherit_handle_count++] = handle_list[i];
+ }
if (inherit_handle_count)
++attribute_count;

Powered by Google App Engine
This is Rietveld 408576698