fix RLZ crasher in process_info.cc
commitfeb83154301ec37a3839ab3e1604de5c4de6b264
authorcpu <cpu@chromium.org>
Wed, 5 Nov 2014 02:02:38 +0000 (4 18:02 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 5 Nov 2014 02:03:06 +0000 (5 02:03 +0000)
treee0dcb4c1a4f5c1b9c9e50c1f39660f2c69b11207
parente6f0440932ca40307d7df95a7bd5721b5ef3be24
fix RLZ crasher in process_info.cc

RLZ is using a very convoluted and fragile way to check for
code running as NT/SYSTEM.

- It can fail, which causes a crash
- It is quite slow on domains
- It is incorrect because "SYSTEM" is not the string in some locales.

BUG=428944

Review URL: https://codereview.chromium.org/691913003

Cr-Commit-Position: refs/heads/master@{#302741}
rlz/win/lib/process_info.cc