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

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

Issue 1626623003: [Win10 sandbox mitigations] Four new Win10 mitigations added. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review changes, part 5. "Fix the nit." Created 4 years, 11 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
« no previous file with comments | « sandbox/win/src/sandbox_policy_base.h ('k') | sandbox/win/src/security_level.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/sandbox_policy_base.cc
diff --git a/sandbox/win/src/sandbox_policy_base.cc b/sandbox/win/src/sandbox_policy_base.cc
index 28662b42d957db8113ade35c9da39fe8ce4d85b3..dc3ed1f7f9eb13d58a031b0f766d2c2779d9712d 100644
--- a/sandbox/win/src/sandbox_policy_base.cc
+++ b/sandbox/win/src/sandbox_policy_base.cc
@@ -179,7 +179,7 @@ TokenLevel PolicyBase::GetInitialTokenLevel() const {
return initial_level_;
}
-TokenLevel PolicyBase::GetLockdownTokenLevel() const{
+TokenLevel PolicyBase::GetLockdownTokenLevel() const {
return lockdown_level_;
}
@@ -192,6 +192,10 @@ ResultCode PolicyBase::SetJobLevel(JobLevel job_level, uint32_t ui_exceptions) {
return SBOX_ALL_OK;
}
+JobLevel PolicyBase::GetJobLevel() const {
+ return job_level_;
+}
+
ResultCode PolicyBase::SetJobMemoryLimit(size_t memory_limit) {
if (memory_limit && job_level_ == JOB_NONE) {
return SBOX_ERROR_BAD_PARAMS;
« no previous file with comments | « sandbox/win/src/sandbox_policy_base.h ('k') | sandbox/win/src/security_level.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698