[Android WebView] Disable preemptive InitializeHwDraw

Currently we request a call RequestDrawGL when we are attached to the
a hardware view tree to enable hardware mode in case we get a hardware
draw. However, there are apps that attach a webview to a hardware tree
but never make hardware draw calls. In this case, a lot of resources are
wasted and it can cause rendering glitches in cases where we are still
not handling GL calls well.

BUG=internal b/9864710
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/19286009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211745 0039d316-1c4b-4281-b951-d872f2087c98
NaCl: Update revision in DEPS, r11718 -> r11754

This pulls in the following Native Client changes:

r11719: (mcgrathr) Deploy ARM toolchain from r11715
r11720: (jvoung) Add a test for FLT_ROUNDS/llvm.flt.rounds + nearbyint().
r11721: (jvoung) Mark the new run_float_rounding_mode_test as broken on Valgrind.
r11722: (eliben) Update Clang revision in pnacl/DEPS. Pulls in:
r11723: (mseaborn) Disable some deprecated/disallowed IRT interfaces under PNaCl
r11724: (mseaborn) Fix checkdeps breakage introduced by r11723
r11725: (eliben) Update gcc revision in pnacl/DEPS. Pulls in a change in libstdc++:
r11726: (eliben) Update LLVM revision in pnacl/DEPS. Pulls in:
r11727: (dschuff) PNaCl driver: Factor file type checking into its own library
r11728: (dschuff) Pass file format argument from driver to pnacl-abicheck
r11729: (sbc) Don't strip irt_core that we ship in the SDK.
r11730: (mseaborn) Disable the irt-blockhook (GC hooks) interface under PNaCl
r11731: (mseaborn) libpthread: Convert semaphore implementation to using futexes
r11732: (shcherbina) Add remaining 'regular' instructions to text-based validator spec.
r11733: (shcherbina) Alter how text-based spec treats multiple write operands.
r11734: (shcherbina) Delete targeted validator test for push with memory operand.
r11735: (shcherbina) Disallow access to control, debug and test registers in text-based spec.
r11736: (shcherbina) Add ud2 to text-based validator spec.
r11737: (dschuff) PNaCl driver: Make pnacl-strip ignore frozen bitcode.
r11738: (eliben) Rolling from revision 11698 to 11731
r11739: (mseaborn) Disable malloc()'s use of sbrk() to allocate memory in nacl-newlib
r11740: (dschuff) PNaCl driver: don't run filetype test without host binaries
r11741: (mseaborn) Enable x86-64 stack unwinding test under PNaCl
r11742: (mseaborn) Convert sbrk_test.c to test the IRT directly rather than testing sbrk()
r11743: (binji) Disable building with GYP on win32 bots. This was broken in r10959.
r11744: (petarj) [MIPS] Remove NaClCheckDEP for MIPS
r11745: (binji) Build nacl_list_mappings and nosys w/ pnacl using GYP.
r11746: (shcherbina) Mark movbe as non-zero-extening in text-based validator spec.
r11747: (sbc) Allow alternate name for NaCl entry point.
r11748: (yyanagisawa) Dedupe files for goma parallel build.
r11749: (mseaborn) Change nacl-newlib's sbrk() to be a no-op wrapper that returns ENOSYS
r11750: (mseaborn) PNaCl: Disallow the IRT semaphore interface, now that libpthread doesn't use it
r11751: (mseaborn) Add comments to irt.h about deprecated/disabled IRT interfaces
r11752: (phosek) Records memory mapping flags in VmmapEntry
r11753: (mseaborn) libpthread: Remove unneeded NULL checks from semaphore functions
r11754: (phosek) Uses memory backing store desc flags for checking protection

BUG=none
TEST=nacl_integration

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211747 0039d316-1c4b-4281-b951-d872f2087c98
Blink roll 154250:154253

http://build.chromium.org/f/chromium/perf/dashboard/ui/changelog_blink.html?url=/trunk&range=154251:154253&mode=html
BUG=
TBR=

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211750 0039d316-1c4b-4281-b951-d872f2087c98
Revert r210030 "[Android WebView] Work around for starving main thread"

This workaround is no longer needed after r211303, which makes the
Android UI message loop fairer between native and java tasks.

Original CL description below:

Currently cc can turn on NeedsBeginFrame continuously while waiting
main thread blocked on the compositor/ui thread on a commit. In this
case, it is possible to almost completely starve the main thread since
the whole invalidate/draw cycle only involve java tasks and we currently
bias java tasks over native tasks.

Temporary workaround to post invalidate as a native task.

Long term, we should not bias towards java tasks but make them fair.
Also cc should not unnecessarily burn battery in these cases. It's a
tradeoff between input latency and battery life on other platforms
that's not applicable for us.

BUG=
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/19290004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211752 0039d316-1c4b-4281-b951-d872f2087c98
Revert 211740 "Add mic icon in omnibox to trigger voice search. ..."

> Add mic icon in omnibox to trigger voice search.  This appears only when the
> underlying page uses the setVoiceSearchSupported() JS API to indicate it
> supports voice search.
> 
> BUG=251386
> TEST=With instant extended on, browser to a search result page; should see mic icon that, when clicked, activates voice search
> R=dmazzoni@chromium.org, sky@chromium.org
> 
> Review URL: https://codereview.chromium.org/18596002

TBR=pkasting@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211753 0039d316-1c4b-4281-b951-d872f2087c98
bookmarks: Change BookmarkExpandedStateTracker to take PrefService.

It just need PrefService instead of BrowserContext. This is a good thing per
Law of Demeter.

BUG=144783
TEST=unit_tests --gtest_filter=BookmarkExpandedStateTrackerTest.*
R=sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211754 0039d316-1c4b-4281-b951-d872f2087c98
Remove USE_LINUX_BREAKPAD ifdef since we don't need it for chromium anymore.

See thread "[chromium-dev] PSA: Breakpad is now compiled into
Chromium by default on Linux' for background

TBR=sbc@chromium.org, thakis@chromium.org, thestig@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211755 0039d316-1c4b-4281-b951-d872f2087c98
[Android] Move modules_unittest to isolate.

Also:
 - Do some cleanup
 - Move isolate remap dir to src/ and clean up during test tear down

NOTRY=True
BUG=249870, 260332
R=craigdh@chromium.org, hellner@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211756 0039d316-1c4b-4281-b951-d872f2087c98
Updating trunk VERSION from 1566.0 to 1567.0

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211758 0039d316-1c4b-4281-b951-d872f2087c98
Pass ContextProvider in InitializeHwDraw

Since factory GetOffscreenContext is now called on both main thread and
compositor/UI thread, it is protected by a lock. Construction of the
in-process context is not expesive so this is ok.

BUG=
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/18661011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211760 0039d316-1c4b-4281-b951-d872f2087c98
Update the NSProgress code to compile with the Mac OS X 10.9 SDK.

No intended behavior change.

BUG=249803, 252898
TEST=compiles with the 10.9 sdk, no other change
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/19291002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211762 0039d316-1c4b-4281-b951-d872f2087c98
Settings: "Allow" dropdown is not showing on the first click.

This bug was triggered by Blink r147680.

A menulist SELECT element in a list item opened by the first mouse
press but it was closed immediately because the mouse press selected
the the list item, and it tiggered focus on the INPUT field.

This CL fixes the bug by avoid INPUT focus if the SELECT is focused.

BUG=257954
R=dbeam@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211763 0039d316-1c4b-4281-b951-d872f2087c98
cros_library: Simplify the order of initialization and shutdown of CrosLibrary

The complex dependencies described at crbug.com/127203 no longer
exits.

> 1. CrosLibrary must be initialized before the main loop starts because NetworkChangeNotifier depends on it.

CrosLibrary is now initialized as part of DBusServices, after the main message loop
(in PostMainMessageLoopStart())

NetworkChangeNotifier is initialized in DBusServices, after CrosLibrary::Initialize(),
hence  NetworkChangeNotifier depending on CrosLibrary is not a problem.
Besides, the new NetworkChangeNotifier (NetworkChangeNotifierChromeos) currently enabled
by default does not depend on CrosLibrary. FWIW, the old one is
NetworkChangeNotifierNetworkLibrary.

BUG=127203
TEST=networking as before on the chromebook
R=hashimoto@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211764 0039d316-1c4b-4281-b951-d872f2087c98
Files.app: Fix typos

BUG=none
TEST=Files.app works. Tests pass.
R=mtomasz@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211772 0039d316-1c4b-4281-b951-d872f2087c98
Use the default display when there is no display connected, as it used to be.
This is regression in r211047. This is a bit better now as chrome uses
the same fallback on both device and desktop.

BUG=259901
TEST=covered by test. (test crashes without change in OnNativeDisplayChanged)
R=derat@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211775 0039d316-1c4b-4281-b951-d872f2087c98
Suppress a leak in views unit tests
BUG=260582
TBR=rnk
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211776 0039d316-1c4b-4281-b951-d872f2087c98
views: Fixed a leak in a test introduced in r211693.

BUG=235574, 260582
R=sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211777 0039d316-1c4b-4281-b951-d872f2087c98
[cros] Cleanup login auth stack: remove ClientLogin legacy code

* Remove Autheticator::RetryAuth() - was used to retry ClientLogin
* Remove Authenticator::AuthenticateToLogin() login_token, login_captcha parameters
* LoginPerformer - remove all code related to bringing up ScreenLock and dealing with ClientLogin results
* ParallelAuthenticator - make NEED_NEW_PW, HAVE_NEW_PW and ONLINE_FAILED states obsolete (ClientLogin related).
* ParallelAuthenticator unit_test - remove related test cases, always use OAuth code path

BUG=106538, 157246, 260219
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/18686006

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