Fix a ComponentLoader error at chrome startup.

ComponentLoader was trying to load the Virtual Keyboard even when the resources
were not loaded.  Ensure this doesn't happen, so we don't throw an error.

BUG=342055

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250581 0039d316-1c4b-4281-b951-d872f2087c98
Optimize CommandBufferHelper::GetSpace().

Previously GetSpace() did various calls:
- usable() - Check if buffer is usable.
- AllocateRingBuffer() - Allocate buffer if not already allocated.
- WaitForAvailableEntries() - Yet more checks.

This change shortcuts most calls, reducing to checks on
immediate_entry_count_ and commands_issued_ only, maintaining the old
behavior in terms of internal flushing.

immediate_entry_count_ is 0 if the buffer is unusable or unallocated,
otherwise is limited to min(immediate free space, force flush limit).

commands_issued_ is counted on non-Android platforms, and checks for
force flush condition every kCommandsPerFlushCheck commands.

BUG=340362

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250582 0039d316-1c4b-4281-b951-d872f2087c98
[sql] Prevent nCells overrun decoding cell in recover.c.

leafCursorCellDecode() correctly guards against the meta-data of the
current cell overflowing the page size, but did not protect against
overflow while decoding the meta-data for other cells when checking for
cell overlap.

BUG=338772

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250583 0039d316-1c4b-4281-b951-d872f2087c98
Fix interactive_ui_tests dependency on xtst

chrome/browser/extensions/extension_commands_global_registry_apitest.cc,
which is linked into interactive_ui_tests, uses some functions from libXtst
and thus should declare a dependency on xtst. The only other file that uses
the XTest.h header is in remoting, which declares an xtst dependency already.
This lets us drop the dependency from glib on xtst since most targets don't need
it.

R=phajdan.jr
BUG=339518

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250586 0039d316-1c4b-4281-b951-d872f2087c98
CertVerifer should be destroyed AFTER SSLClientSocket.

BUG=342603

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250588 0039d316-1c4b-4281-b951-d872f2087c98
Remove ExtensionService::disabled_extensions()

Replace usage with ExtensionRegistry::disabled_extensions().
Opportunistically, any nearby references to ExtensionService::extensions()
have also been shifted over to ExtensionRegistry::enabled_extensions().

BUG=332978

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250590 0039d316-1c4b-4281-b951-d872f2087c98
Move DidCommitProvisionalLoad code from RenderView to RenderFrame.

Another attempt at landing this. Original CL is https://codereview.chromium.org/135723003/ and patchset 1 is identical to it.

BUG=304341

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250591 0039d316-1c4b-4281-b951-d872f2087c98
Revert 250209 "Don't send VSync parameters to the host on Mac."

> Don't send VSync parameters to the host on Mac.
> 
> This was broken for a long time, and it looks like fixing it might have
> cause some performance regressions. This is to test if that's the case.
> 
> If this does not fix the performance issues, I will remove the display
> link entirely. If that does not fix the issue, then this is a misattribution.
> 
> If this does fix the issue, then we'll need to discuss how vsync impacts
> compositor performance, and the validity of the previous baselines.
> 
> BUG=341811
> TBR=kbr@chromium.org
> 
> Review URL: https://codereview.chromium.org/156533005

TBR=ccameron@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250592 0039d316-1c4b-4281-b951-d872f2087c98
kiosk: Use account id for kiosk app user display email.

BUG=342877

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250596 0039d316-1c4b-4281-b951-d872f2087c98
Add GCM registration status code metric collection.

BUG=284553

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250597 0039d316-1c4b-4281-b951-d872f2087c98
Widen the suppression for the leak in nssTrustDomain_UpdateCachedTokenCerts.

This leak is entirely in nssTrustDomain_UpdateCachedTokenCerts, regardless
of the caller.

R=rtenneti@chromium.org
BUG=321976
TEST=none
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250598 0039d316-1c4b-4281-b951-d872f2087c98
Replace "bluetooth" permission with manifest property.

BUG=336824

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250599 0039d316-1c4b-4281-b951-d872f2087c98
Add field trial that records if multiprofiles is allowed for a ChromeOS session.

(Note that this doesn't mean more than one profile was actually used.)

BUG=218627

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250600 0039d316-1c4b-4281-b951-d872f2087c98
[Hotword] Simplify hotword description string and reflect new policy.

BUG=325439, 289023

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250601 0039d316-1c4b-4281-b951-d872f2087c98
Setup skeleton code for browser GCM internals page. This page will display GCM status which helps developer debug their GCM applications.

Code reviewer: jianli and fgorski
Owner reviewer: arv, sky

BUG=341256

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250603 0039d316-1c4b-4281-b951-d872f2087c98
Fix wallpaper cache crash in multi profile mode


BUG=342487

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250607 0039d316-1c4b-4281-b951-d872f2087c98
Remove toolbar for DevTools and legacy packaged apps for streamlined hosted apps.

This CL removes the toolbar from the dev tools app and legacy packaged app for
streamlined hosted by turning off FEATURE_LOCATIONBAR for these cases.

BUG=318607

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250612 0039d316-1c4b-4281-b951-d872f2087c98
Makes WindowState::Restore() a no-op for windows with SHOW_TYPE_DEFAULT and SHOW_TYPE_NORMAL.

This makes the behavior of WindowState::Restore() less confusing. Previously, WindowState::Restore()
- set the window's bounds to the restore bounds for SHOW_TYPE_DEFAULT
- did nothing for SHOW_TYPE_NORMAL

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250613 0039d316-1c4b-4281-b951-d872f2087c98
[Hotword, Extensions] Removing EXTERNAL_COMPONENT from IsPolicyLocation, adding a function to check if an extension is a component extension, and updating places IsPolicyLocation was used.

This is necessary for the correct look for hotwording.

BUG=341611, 325439, 289023

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

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