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

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

Issue 1851213002: Remove sandbox on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nacl compile issues Created 4 years, 9 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
Index: sandbox/win/src/process_mitigations_win32k_dispatcher.cc
diff --git a/sandbox/win/src/process_mitigations_win32k_dispatcher.cc b/sandbox/win/src/process_mitigations_win32k_dispatcher.cc
deleted file mode 100644
index e426084f861abdd9387d5578187365ff17720fad..0000000000000000000000000000000000000000
--- a/sandbox/win/src/process_mitigations_win32k_dispatcher.cc
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "sandbox/win/src/process_mitigations_win32k_dispatcher.h"
-#include "sandbox/win/src/interception.h"
-#include "sandbox/win/src/interceptors.h"
-#include "sandbox/win/src/ipc_tags.h"
-#include "sandbox/win/src/process_mitigations_win32k_interception.h"
-
-namespace sandbox {
-
-ProcessMitigationsWin32KDispatcher::ProcessMitigationsWin32KDispatcher(
- PolicyBase* policy_base)
- : policy_base_(policy_base) {
-}
-
-bool ProcessMitigationsWin32KDispatcher::SetupService(
- InterceptionManager* manager, int service) {
- if (!(policy_base_->GetProcessMitigations() &
- sandbox::MITIGATION_WIN32K_DISABLE)) {
- return false;
- }
-
- switch (service) {
- case IPC_GDI_GDIDLLINITIALIZE_TAG: {
- if (!INTERCEPT_EAT(manager, L"gdi32.dll", GdiDllInitialize,
- GDIINITIALIZE_ID, 12)) {
- return false;
- }
- return true;
- }
-
- case IPC_GDI_GETSTOCKOBJECT_TAG: {
- if (!INTERCEPT_EAT(manager, L"gdi32.dll", GetStockObject,
- GETSTOCKOBJECT_ID, 8)) {
- return false;
- }
- return true;
- }
-
- case IPC_USER_REGISTERCLASSW_TAG: {
- if (!INTERCEPT_EAT(manager, L"user32.dll", RegisterClassW,
- REGISTERCLASSW_ID, 8)) {
- return false;
- }
- return true;
- }
-
- default:
- break;
- }
- return false;
-}
-
-} // namespace sandbox
-
« no previous file with comments | « sandbox/win/src/process_mitigations_win32k_dispatcher.h ('k') | sandbox/win/src/process_mitigations_win32k_interception.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698