diff options
author | robertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-01 01:23:24 +0000 |
---|---|---|
committer | robertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-01 01:23:24 +0000 |
commit | 0884a315e82ec12d1ebc336050f2e24b611338d5 (patch) | |
tree | 296d42d0a130bab47d64c7c5e2b607237e496ea0 /chrome_elf/create_file | |
parent | 8834a3b3a4d52040e9e8436e20fa2dd0536b82a4 (diff) | |
download | chromium_src-0884a315e82ec12d1ebc336050f2e24b611338d5.zip chromium_src-0884a315e82ec12d1ebc336050f2e24b611338d5.tar.gz chromium_src-0884a315e82ec12d1ebc336050f2e24b611338d5.tar.bz2 |
Unify browser process type checks in Chrome ELF.
Use both IsSandboxed and command line flag.
BUG=329023
TEST=chrome_elf_unittests
Review URL: https://codereview.chromium.org/181863002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254308 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_elf/create_file')
-rw-r--r-- | chrome_elf/create_file/chrome_create_file.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome_elf/create_file/chrome_create_file.cc b/chrome_elf/create_file/chrome_create_file.cc index 1b8515f..9521ecb2 100644 --- a/chrome_elf/create_file/chrome_create_file.cc +++ b/chrome_elf/create_file/chrome_create_file.cc @@ -254,8 +254,7 @@ HANDLE CreateFileNTDLL( bool ShouldBypass(LPCWSTR file_path) { // Do not redirect in non-browser processes. - wchar_t* command_line = ::GetCommandLine(); - if (command_line && wcsstr(command_line, L"--type")) + if (IsNonBrowserProcess()) return false; // If the shell functions are not present, forward the call to kernel32. |