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/restricted_token.h

Issue 1106203002: sandbox/win: Fix warnings found by clang chromium-style plugin on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/policy_low_level.cc ('k') | sandbox/win/src/restricted_token.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/restricted_token.h
diff --git a/sandbox/win/src/restricted_token.h b/sandbox/win/src/restricted_token.h
index 6d8e5506918d3b13767aa95d7aee260b2daa37eb..565880e7787d680b0e75880dc07713ec2a344de2 100644
--- a/sandbox/win/src/restricted_token.h
+++ b/sandbox/win/src/restricted_token.h
@@ -45,14 +45,8 @@ namespace sandbox {
class RestrictedToken {
public:
// Init() has to be called before calling any other method in the class.
- RestrictedToken()
- : init_(false), effective_token_(NULL),
- integrity_level_(INTEGRITY_LEVEL_LAST) { }
-
- ~RestrictedToken() {
- if (effective_token_)
- CloseHandle(effective_token_);
- }
+ RestrictedToken();
+ ~RestrictedToken();
// Initializes the RestrictedToken object with effective_token.
// If effective_token is NULL, it initializes the RestrictedToken object with
« no previous file with comments | « sandbox/win/src/policy_low_level.cc ('k') | sandbox/win/src/restricted_token.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698