summaryrefslogtreecommitdiffstats
path: root/chrome_elf
diff options
context:
space:
mode:
authorrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-12 13:44:19 +0000
committerrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-12 13:44:19 +0000
commit0ee7b990c7b9f2ec3ee2c0b0ae93efee2240e3f0 (patch)
tree5c9a558a09305db71cf302d2fecc4dd2b704c931 /chrome_elf
parent61c969fb38eb52f31661b8a75c5e8a53ac3561e3 (diff)
downloadchromium_src-0ee7b990c7b9f2ec3ee2c0b0ae93efee2240e3f0.zip
chromium_src-0ee7b990c7b9f2ec3ee2c0b0ae93efee2240e3f0.tar.gz
chromium_src-0ee7b990c7b9f2ec3ee2c0b0ae93efee2240e3f0.tar.bz2
Revert blacklist part of crrev.com/250682.
Don't want the new check in just yet, it will interfere with metrics. BUG=329023 TBR=csharp NOTRY=true NOTREECHECKS=TRUE Review URL: https://codereview.chromium.org/160373002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250704 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_elf')
-rw-r--r--chrome_elf/blacklist/blacklist.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/chrome_elf/blacklist/blacklist.cc b/chrome_elf/blacklist/blacklist.cc
index ea140c4..bf48435 100644
--- a/chrome_elf/blacklist/blacklist.cc
+++ b/chrome_elf/blacklist/blacklist.cc
@@ -138,14 +138,8 @@ class OSInfo {
};
bool IsNonBrowserProcess() {
- typedef bool (*IsSandboxedProcessFunc)();
- IsSandboxedProcessFunc is_sandboxed_process =
- reinterpret_cast<IsSandboxedProcessFunc>(
- GetProcAddress(GetModuleHandle(NULL), "IsSandboxedProcess"));
- if (is_sandboxed_process && is_sandboxed_process())
- return true;
-
- return false;
+ wchar_t* command_line = GetCommandLine();
+ return (command_line && wcsstr(command_line, L"--type"));
}
// Record that the thunk setup completed succesfully and close the registry