summaryrefslogtreecommitdiffstats
path: root/rlz
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-21 17:03:17 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-21 17:03:17 +0000
commit48728ff596a997136580aca419f57db4b7dd5199 (patch)
tree8d96ca227ebe2d936d4512401b20c29bef0a0ef0 /rlz
parent76df22e73674e0eaef0d98fc175c5a0e17844264 (diff)
downloadchromium_src-48728ff596a997136580aca419f57db4b7dd5199.zip
chromium_src-48728ff596a997136580aca419f57db4b7dd5199.tar.gz
chromium_src-48728ff596a997136580aca419f57db4b7dd5199.tar.bz2
clang/win: Fix a Wenum-compare warning and a few Wwritable-strings warnings.
BUG=82385 R=rnk@chromium.org TBR=jochen Review URL: https://codereview.chromium.org/405123002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284447 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'rlz')
-rw-r--r--rlz/win/lib/process_info.cc2
-rw-r--r--rlz/win/lib/process_info.h7
2 files changed, 1 insertions, 8 deletions
diff --git a/rlz/win/lib/process_info.cc b/rlz/win/lib/process_info.cc
index d17b4fe..7068cfb 100644
--- a/rlz/win/lib/process_info.cc
+++ b/rlz/win/lib/process_info.cc
@@ -172,7 +172,7 @@ bool ProcessInfo::HasAdminRights() {
if (SUCCEEDED(GetElevationType(&elevation)) &&
base::GetProcessIntegrityLevel(base::GetCurrentProcessHandle(), &level))
has_rights = (elevation == TokenElevationTypeFull) ||
- (level == HIGH_INTEGRITY);
+ (level == base::HIGH_INTEGRITY);
} else {
long group = 0;
if (GetUserGroup(&group))
diff --git a/rlz/win/lib/process_info.h b/rlz/win/lib/process_info.h
index 84bd604..d3b39f3 100644
--- a/rlz/win/lib/process_info.h
+++ b/rlz/win/lib/process_info.h
@@ -13,13 +13,6 @@ namespace rlz_lib {
class ProcessInfo {
public:
- enum IntegrityLevel {
- INTEGRITY_UNKNOWN,
- LOW_INTEGRITY,
- MEDIUM_INTEGRITY,
- HIGH_INTEGRITY,
- };
-
// All these functions cache the result after first run.
static bool IsRunningAsSystem();
static bool HasAdminRights(); // System / Admin / High Elevation on Vista