Fix bugs caused by implicitly using the default locale in Java.

This addresses several cases (identified by Android lint) where we
implicitly used the default locale while formatting a string or calling
toLowerCase(). These operations would give different result depending on
the user's settings, which is not what we want, except when formatting
text for display.

Bugs fixed:
 * The JellyBeanAccessibilityInjector now works in Arabic. Previously,
   it used String.format() to create JavaScript statements... but in
   Arabic the formatted numbers were invalid JavaScript.
 * Percentages are now formatted correctly in Turkish and Farsi in the
   Bandwidth Reduction settings menu.
 * Several other minor fixes in tests

BUG=316522

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252404 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 252404
Exclude uneeded strings from chrome and chromium strings.

BUG=326023

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252405 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 252405
Fix GetLastUsedProfile to return off the record profile in cros guest mode

BUG=343837
TEST=see bug

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252406 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 252406
Move NullDraw GL bindings and allow them to be disabled temporarily.

This moves the NullDraw GL bindings out of generate_bindings.py to
ui/gl/gl_gl_api_implementation.cc since there are only a few methods
and this makes them easier to read, understand, and change. Add to
these methods a way to disable them causing drawing to occur. This
is needed so that one test in a test suite can disable null draw
if it wants pixel output.

TBR=piman@chromium.org
BUG=270918

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252407 0039d316-1c4b-4281-b951-d872f2087c98
Adding talk_base::PacketOptions to P2P IPC Send message.

Libjingle added a structure which will carry additional
meta information about the packet in Send API. This includes
DSCP code for the packet and packet authentication information.
This information must be used before the packet is sent over
the network. This requires options must be sent to the browser process.

R=sergeyu@chromium.org
TBR=cevans@chromium.org,avi@chromium.org

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252408 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 252408
Make Linux GN build's cflags match GYP's

This is for the base shared library target on desktop Linux.

The remaining difference on Linux is that GYP's base build specifies -Wno-write-strings on Linux. This dates back to the first GYP file. I don't know why we would specify this for only base, and it seems not to trigger any warning without this flag, so I didn't add it.

This changes the pkg-config invocation from --libs to --libs-only-L and --libs-only-l. The output seems slightly different (--libs was producing an extra --export-dynamic for gmodule-2.0 that aren't present when invoking the other way, which is what the GYP build does).

R=thakis@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252409 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 252409
Store the XDisplay as a member on NativeViewGLSurfaceOSMesa.

If this is stored as a global variable, it can get closed by one test
and have that affect later tests which is bad. Prevent this by keeping
the XDisplay as a member variable.

TBR=piman@chromium.org
BUG=270918

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252410 0039d316-1c4b-4281-b951-d872f2087c98
Remove -Wno-write-strings from base

This is exceedingly old (from initial GYP file checkin) and seems to be unnecessary.

R=thakis@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252411 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 252410
SVN changes up to revision 252411
Add flag to disable demo mode.

R=dpolukhin@chromium.org
BUG=343727

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252412 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 252412
Rename VIEW_TYPE_APP_SHELL -> VIEW_TYPE_APP_WINDOW

An underlying string constant (kViewTypeAppShell == "SHELL") has also been
changed to kViewTypeAppWindow == "APP_WINDOW".

BUG=344067
TBR=scheib@chromium.org,phajdan.jr@chromium.org,tommi@chromium.org,avi@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252413 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 252413
Enable a bunch of webgl conformance tests on Linux NVIDIA GPU bots

empty_main.vert.html
gl_position_unset.vert.html
uniform-location.html

BUG=325884
TEST=Linux NVIDIA bots
TBR=kbr@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252414 0039d316-1c4b-4281-b951-d872f2087c98