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

Side by Side Diff: sandbox/win/src/restricted_token.cc

Issue 10689170: Move the Windows sandbox to sandbox/win (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on top of tree (properly this time) Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sandbox/win/src/restricted_token.h ('k') | sandbox/win/src/restricted_token_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "sandbox/src/restricted_token.h" 5 #include "sandbox/win/src/restricted_token.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "sandbox/src/acl.h" 10 #include "sandbox/win/src/acl.h"
11 #include "sandbox/src/win_utils.h" 11 #include "sandbox/win/src/win_utils.h"
12 12
13 13
14 namespace sandbox { 14 namespace sandbox {
15 15
16 unsigned RestrictedToken::Init(const HANDLE effective_token) { 16 unsigned RestrictedToken::Init(const HANDLE effective_token) {
17 DCHECK(!init_); 17 DCHECK(!init_);
18 if (init_) 18 if (init_)
19 return ERROR_ALREADY_INITIALIZED; 19 return ERROR_ALREADY_INITIALIZED;
20 20
21 if (effective_token) { 21 if (effective_token) {
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 457
458 return ERROR_SUCCESS; 458 return ERROR_SUCCESS;
459 } 459 }
460 460
461 unsigned RestrictedToken::SetIntegrityLevel(IntegrityLevel integrity_level) { 461 unsigned RestrictedToken::SetIntegrityLevel(IntegrityLevel integrity_level) {
462 integrity_level_ = integrity_level; 462 integrity_level_ = integrity_level;
463 return ERROR_SUCCESS; 463 return ERROR_SUCCESS;
464 } 464 }
465 465
466 } // namespace sandbox 466 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/win/src/restricted_token.h ('k') | sandbox/win/src/restricted_token_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698