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

Unified Diff: content/common/sandbox_win.cc

Issue 1149143002: Merge M43: Enable appcontainer on M43 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2357
Patch Set: Created 5 years, 7 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 | « content/browser/renderer_host/render_process_host_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_win.cc
diff --git a/content/common/sandbox_win.cc b/content/common/sandbox_win.cc
index 0211a1c73ced3af904dfba9bd1df4bf84585f9f6..a8100bee7b880b8fdf9378869e87c3dd32e0bca8 100644
--- a/content/common/sandbox_win.cc
+++ b/content/common/sandbox_win.cc
@@ -728,7 +728,6 @@ base::Process StartSandboxedProcess(
cmd_line->GetCommandLineString().c_str(),
policy, &temp_process_info);
DWORD last_error = ::GetLastError();
- policy->Release();
base::win::ScopedProcessInformation target(temp_process_info);
TRACE_EVENT_END_ETW("StartProcessWithAccess::LAUNCHPROCESS", 0, 0);
@@ -747,8 +746,11 @@ base::Process StartSandboxedProcess(
last_error);
} else
DLOG(ERROR) << "Failed to launch process. Error: " << result;
+
+ policy->Release();
return base::Process();
}
+ policy->Release();
if (delegate)
delegate->PostSpawnTarget(target.process_handle());
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698