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

Unified Diff: sandbox/win/src/named_pipe_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/named_pipe_dispatcher.cc
diff --git a/sandbox/win/src/named_pipe_dispatcher.cc b/sandbox/win/src/named_pipe_dispatcher.cc
index 53bb7c4c658d0d81d3f9222271eac1b69e8061ae..5eeb6d168c331aa54e82ebc0574cc63aae9bc4c9 100644
--- a/sandbox/win/src/named_pipe_dispatcher.cc
+++ b/sandbox/win/src/named_pipe_dispatcher.cc
@@ -20,8 +20,8 @@
namespace sandbox {
-NamedPipeDispatcher::NamedPipeDispatcher(PolicyBase* policy_base)
- : policy_base_(policy_base) {
+NamedPipeDispatcher::NamedPipeDispatcher(TargetPolicy* policy)
+ : policy_(policy) {
static const IPCCall create_params = {
{IPC_CREATENAMEDPIPEW_TAG,
{WCHAR_TYPE,
@@ -73,8 +73,8 @@ bool NamedPipeDispatcher::CreateNamedPipe(IPCInfo* ipc,
CountedParameterSet<NameBased> params;
params[NameBased::NAME] = ParamPickerMake(pipe_name);
- EvalResult eval = policy_base_->EvalPolicy(IPC_CREATENAMEDPIPEW_TAG,
- params.GetBase());
+ EvalResult eval =
+ policy_->EvalPolicy(IPC_CREATENAMEDPIPEW_TAG, params.GetBase());
// "For file I/O, the "\\?\" prefix to a path string tells the Windows APIs to
// disable all string parsing and to send the string that follows it straight

Powered by Google App Engine
This is Rietveld 408576698