Don't attempt to send an onUnload event when V8 has encountered an OOM situation.

BUG=310797

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

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

SchemaValidatingPolicyHandler is just like TypeCheckingPolicyHandler but based
on schema instead of single type.

BUG=258339

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249711 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 249711
Delete content::Shell on close when using shell_aura.cc

This change fixes 
RenderProcessHostTest.AllProcessExitedCallsBeforeAnyHostDestroyedCalls
on Ozone which has been failing due to timeouts. In views, the Shell 
would be deleted by 
content::(anonymous namespace)::ShellWindowDelegateView::WindowClosing 
when content::Shell::Close() is called.

The underlying problem is caused by the test waiting for the message loop to
finish, but scheduling the QuitClosure only happens in the Shell dtor.

TEST=content_browsertests on Ozone

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

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