Revert of Fix for VS2015 thread safe statics breaking in the sandbox (patchset #2...
commit5cde8dcb1cac1999e1ae8b2afce252779525f499
authorsamuong <samuong@chromium.org>
Fri, 29 May 2015 00:53:17 +0000 (28 17:53 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 29 May 2015 00:54:00 +0000 (29 00:54 +0000)
treec4f53b336f5bcafb32e89e4f92c5bdadf0e9429e
parentb40097fbb3bc496b9dd94caf5a50866e6f8c62bf
Revert of Fix for VS2015 thread safe statics breaking in the sandbox (patchset #2 id:20001 of https://codereview.chromium.org/1138463005/)

Reason for revert:
Suspect this is causing sbox_integration_tests to fail:

https://build.chromium.org/p/chromium.win/builders/XP%20Tests%20%281%29/builds/37862

Original issue's description:
> Fix for VS2015 thread safe statics breaking in the sandbox
>
> The issue is that a function level static now takes a secret lock which is managed by the crt. Since the code in question executes before the crt has initialized, it uses an non-initialized lock.
>
> Current sandbox tests suffice.
>
> BUG=482784
>
> Committed: https://crrev.com/561ad2ebd6dd1b96ebbfe0d2656e44e21dba974c
> Cr-Commit-Position: refs/heads/master@{#331854}

TBR=scottmg@chromium.org,cpu@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=482784

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

Cr-Commit-Position: refs/heads/master@{#331900}
sandbox/win/src/target_services.cc
sandbox/win/src/target_services.h