| Index: sandbox/win/src/win_utils.cc
|
| diff --git a/sandbox/win/src/win_utils.cc b/sandbox/win/src/win_utils.cc
|
| index f5c479a35a2cb732e84e970d39544b80829cc706..738efa3f73bb6d7299d87af8b18e1237fe73a230 100644
|
| --- a/sandbox/win/src/win_utils.cc
|
| +++ b/sandbox/win/src/win_utils.cc
|
| @@ -276,26 +276,6 @@ bool GetNtPathFromWin32Path(const std::wstring& path, std::wstring* nt_path) {
|
| return rv;
|
| }
|
|
|
| -bool WriteProtectedChildMemory(HANDLE child_process, void* address,
|
| - const void* buffer, size_t length) {
|
| - // First, remove the protections.
|
| - DWORD old_protection;
|
| - if (!::VirtualProtectEx(child_process, address, length,
|
| - PAGE_WRITECOPY, &old_protection))
|
| - return false;
|
| -
|
| - SIZE_T written;
|
| - bool ok = ::WriteProcessMemory(child_process, address, buffer, length,
|
| - &written) && (length == written);
|
| -
|
| - // Always attempt to restore the original protection.
|
| - if (!::VirtualProtectEx(child_process, address, length,
|
| - old_protection, &old_protection))
|
| - return false;
|
| -
|
| - return ok;
|
| -}
|
| -
|
| }; // namespace sandbox
|
|
|
| // TODO(jschuh): http://crbug.com/11789
|
|
|