Base: Disable the scoped handle verifier.

This is intended for the M38 branch. (The verifier is not intended for
Beta/Stable)

BUG=405224
R=cpu@chromium.org
TBR=cpu@chromium.org
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/base@290861 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Don't pass const strings to CreateProcess.

The documentation says that CreateProcess() can modify its second parameter
in UNICODE builds.

BUG=396705
R=scottmg@chromium.org, vitalybuka@chromium.org
TBR=cpu

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

git-svn-id: http://src.chromium.org/svn/trunk/src/base@290890 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Revert 290861 "Base: Disable the scoped handle verifier."

(the CL is only for the branch, not ToT)

> Base: Disable the scoped handle verifier.
> 
> This is intended for the M38 branch. (The verifier is not intended for
> Beta/Stable)
> 
> BUG=405224
> R=cpu@chromium.org
> TBR=cpu@chromium.org
> NOTRY=true
> 
> Review URL: https://codereview.chromium.org/484293002

TBR=rvargas@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/base@290892 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
win: Fix a 64bit warning.

clang warns:
..\..\base\files\file_path.cc(695,47) :  warning(clang): cast to 'wchar_t *' from smaller integer type 'LONG' (aka 'long') [-Wint-to-pointer-cast]
    wchar_t c1 = (wchar_t)LOWORD(::CharUpperW((LPWSTR)MAKELONG(*i1, 0)));
                                              ^

CharUpper() is a pretty whacko: It takes a pointer, but: """
A null-terminated string, or a single character. If the high-order word of this
parameter is zero, the low-order word must contain a single character to be
converted.""" (!)

It's not clear to me what this means on 64bit, but the code as-is casted a
32bit int (a DWORD) to a pointer, which I think doesn't guarantee that the
upper 4 byte of the 8 byte pointer are zero. So insert a cast to a pointer-wide
int type to guarantee this, and to fix this warning.

BUG=82385
R=brettw@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/base@290905 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Add native libraries to gn apks

First, change the NativeLibraries template to use preprocessor defines
instead of includes. This allows us to delete all the corresponding
headers.

Then, change the ordered libraries file to be a dict with both the list
of library paths and the java-style list of library names.

Update a bunch of things that used the ordered libraries file to instead
take the list of libraries directly as an argument (as a FileArg in
every case).

Add calculating the list of libraries to write_build_config and add it
to the build config (gn can use this then instead of a separate ordered
libraries file).

Add a simple copy step in gn to set up the native libraries directory
for an apk. Use this directory when creating the apk.

BUG=359249
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/base@290963 4ff67af0-8c30-449e-8e8b-ad334ec8d88c