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

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

Issue 1460903002: Unify PolicyBase into TargetPolicy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@policy_dispatcher
Patch Set: Rebase. Created 5 years 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/process_thread_dispatcher.cc
diff --git a/sandbox/win/src/process_thread_dispatcher.cc b/sandbox/win/src/process_thread_dispatcher.cc
index 90cad6365f927d2f1aed9fadc3e0d9195ce8c01a..b2ceafaa82fdf7feddd2de55a107f9355c277781 100644
--- a/sandbox/win/src/process_thread_dispatcher.cc
+++ b/sandbox/win/src/process_thread_dispatcher.cc
@@ -94,8 +94,8 @@ bool ConvertToAbsolutePath(const base::string16& child_current_directory,
} // namespace
namespace sandbox {
-ThreadProcessDispatcher::ThreadProcessDispatcher(PolicyBase* policy_base)
- : policy_base_(policy_base) {
+ThreadProcessDispatcher::ThreadProcessDispatcher(TargetPolicy* policy)
+ : policy_(policy) {
static const IPCCall open_thread = {
{IPC_NTOPENTHREAD_TAG, {UINT32_TYPE, UINT32_TYPE}},
reinterpret_cast<CallbackGeneric>(
@@ -227,8 +227,8 @@ bool ThreadProcessDispatcher::CreateProcessW(IPCInfo* ipc, base::string16* name,
CountedParameterSet<NameBased> params;
params[NameBased::NAME] = ParamPickerMake(const_exe_name);
- EvalResult eval = policy_base_->EvalPolicy(IPC_CREATEPROCESSW_TAG,
- params.GetBase());
+ EvalResult eval =
+ policy_->EvalPolicy(IPC_CREATEPROCESSW_TAG, params.GetBase());
PROCESS_INFORMATION* proc_info =
reinterpret_cast<PROCESS_INFORMATION*>(info->Buffer());

Powered by Google App Engine
This is Rietveld 408576698