Refactor & Harden SiteIsolationPolicy

BUG=268640

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226586 0039d316-1c4b-4281-b951-d872f2087c98
IndexedDB: Don't fsync after transactions

Syncing after transaction writes was an early shot in
the dark at reducing data loss issues, but it appears
that other sources of corruption are more prevalent and
the performance impact on slower file systems is too great.

BUG=299831

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226587 0039d316-1c4b-4281-b951-d872f2087c98
Global error crash: replace CHECK with DCHECK

I added two CHECKs to help debug crbug.com/278543. Now that the bug has been fixed I'm changing the CHECKs to DCHECKs.

BUG=278543

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226588 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 226587
Separate PepperPluginRegistry initialization from constructor.

When initializing the registry, we initialize all internal modules. If a module
fails to initialize, it is destroyed before the registry initialization
finishes, but the PluginModule destructor calls back into
PepperPluginRegistry::GetInstance().
As it is now, this tries to recreate the registry, causing an infinite
recursion. So instead, create the registry first, and then initialize it so that
module initialization can safely call PepperPluginRegistry::GetInstance().

BUG=None

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

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