diff options
author | rvargas <rvargas@chromium.org> | 2015-02-13 10:07:59 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-13 18:08:56 +0000 |
commit | 6c690f1c2e035deda117ac13e6d5a23f4be6e3c6 (patch) | |
tree | c952889b9cb7f754c39b8e3071aa046c5031c7c1 /cloud_print/virtual_driver/win | |
parent | ddea13be3be19fd889fb5953470faf154836e973 (diff) | |
download | chromium_src-6c690f1c2e035deda117ac13e6d5a23f4be6e3c6.zip chromium_src-6c690f1c2e035deda117ac13e6d5a23f4be6e3c6.tar.gz chromium_src-6c690f1c2e035deda117ac13e6d5a23f4be6e3c6.tar.bz2 |
Move GetProcessIntegrityLevel to file_info.h and remove the handle argument.
BUG=417532
Review URL: https://codereview.chromium.org/921913002
Cr-Commit-Position: refs/heads/master@{#316242}
Diffstat (limited to 'cloud_print/virtual_driver/win')
-rw-r--r-- | cloud_print/virtual_driver/win/port_monitor/port_monitor_dll.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/cloud_print/virtual_driver/win/port_monitor/port_monitor_dll.cc b/cloud_print/virtual_driver/win/port_monitor/port_monitor_dll.cc index b5bb451..d2d1119 100644 --- a/cloud_print/virtual_driver/win/port_monitor/port_monitor_dll.cc +++ b/cloud_print/virtual_driver/win/port_monitor/port_monitor_dll.cc @@ -16,7 +16,7 @@ #include "base/command_line.h" #include "base/files/file_util.h" #include "base/logging.h" -#include "base/process/process.h" +#include "base/process/process_info.h" #include "base/strings/string16.h" #include "base/win/registry.h" #include "base/win/scoped_handle.h" @@ -55,13 +55,8 @@ bool CanRegister() { return false; } if (base::win::GetVersion() >= base::win::VERSION_VISTA) { - base::IntegrityLevel level = base::INTEGRITY_UNKNOWN; - if (!GetProcessIntegrityLevel(base::GetCurrentProcessHandle(), &level)) { + if (base::GetCurrentProcessIntegrityLevel() != base::HIGH_INTEGRITY) return false; - } - if (level != base::HIGH_INTEGRITY) { - return false; - } } return true; } |