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

Unified Diff: sandbox/win/src/handle_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/handle_dispatcher.cc
diff --git a/sandbox/win/src/handle_dispatcher.cc b/sandbox/win/src/handle_dispatcher.cc
index fb640ba938f9eb53b40ade51540a3c2fb5e2c973..6c85d19ca55eac15fb127121b903fadf8b259996 100644
--- a/sandbox/win/src/handle_dispatcher.cc
+++ b/sandbox/win/src/handle_dispatcher.cc
@@ -17,8 +17,8 @@
namespace sandbox {
-HandleDispatcher::HandleDispatcher(PolicyBase* policy_base)
- : policy_base_(policy_base) {
+HandleDispatcher::HandleDispatcher(TargetPolicy* policy)
+ : policy_(policy) {
static const IPCCall duplicate_handle_proxy = {
{IPC_DUPLICATEHANDLEPROXY_TAG,
{VOIDPTR_TYPE, UINT32_TYPE, UINT32_TYPE, UINT32_TYPE}},
@@ -76,8 +76,8 @@ bool HandleDispatcher::DuplicateHandleProxy(IPCInfo* ipc,
params[HandleTarget::NAME] = ParamPickerMake(type_info->Name.Buffer);
params[HandleTarget::TARGET] = ParamPickerMake(target_process_id);
- EvalResult eval = policy_base_->EvalPolicy(IPC_DUPLICATEHANDLEPROXY_TAG,
- params.GetBase());
+ EvalResult eval =
+ policy_->EvalPolicy(IPC_DUPLICATEHANDLEPROXY_TAG, params.GetBase());
ipc->return_info.win32_result =
HandlePolicy::DuplicateHandleProxyAction(eval, handle.Get(),
target_process_id,

Powered by Google App Engine
This is Rietveld 408576698