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

Unified Diff: sandbox/win/src/sync_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/sync_dispatcher.cc
diff --git a/sandbox/win/src/sync_dispatcher.cc b/sandbox/win/src/sync_dispatcher.cc
index a638d3d55a0ddd55ebfa4c0af24e7d25f77e15ed..9a59f9c96c4781d9d0e92fec14f181dbef4afc93 100644
--- a/sandbox/win/src/sync_dispatcher.cc
+++ b/sandbox/win/src/sync_dispatcher.cc
@@ -17,8 +17,8 @@
namespace sandbox {
-SyncDispatcher::SyncDispatcher(PolicyBase* policy_base)
- : policy_base_(policy_base) {
+SyncDispatcher::SyncDispatcher(TargetPolicy* policy)
+ : policy_(policy) {
static const IPCCall create_params = {
{IPC_CREATEEVENT_TAG, {WCHAR_TYPE, UINT32_TYPE, UINT32_TYPE}},
reinterpret_cast<CallbackGeneric>(&SyncDispatcher::CreateEvent)};
@@ -48,8 +48,8 @@ bool SyncDispatcher::CreateEvent(IPCInfo* ipc,
CountedParameterSet<NameBased> params;
params[NameBased::NAME] = ParamPickerMake(event_name);
- EvalResult result = policy_base_->EvalPolicy(IPC_CREATEEVENT_TAG,
- params.GetBase());
+ EvalResult result =
+ policy_->EvalPolicy(IPC_CREATEEVENT_TAG, params.GetBase());
HANDLE handle = NULL;
// Return operation status on the IPC.
ipc->return_info.nt_status = SyncPolicy::CreateEventAction(
@@ -67,8 +67,7 @@ bool SyncDispatcher::OpenEvent(IPCInfo* ipc,
params[OpenEventParams::NAME] = ParamPickerMake(event_name);
params[OpenEventParams::ACCESS] = ParamPickerMake(desired_access);
- EvalResult result = policy_base_->EvalPolicy(IPC_OPENEVENT_TAG,
- params.GetBase());
+ EvalResult result = policy_->EvalPolicy(IPC_OPENEVENT_TAG, params.GetBase());
HANDLE handle = NULL;
// Return operation status on the IPC.
ipc->return_info.nt_status = SyncPolicy::OpenEventAction(

Powered by Google App Engine
This is Rietveld 408576698