[MediaGalleries] Consolidate filesystem registration API and treat MTP as a virtual FS.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230870 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 230870
Fix a problem that we are not requesting config if kConfigChanged is the first access unit

Currently OnDataReceived() directly calls DecodeNextAccessUnit(). If kConfigChanged is the first access unit, we will not request the demuxer config.
This CL fixes the problem by returning a MEDIA_CODEC_DEQUEUE_INPUT_AGAIN_LATER status, so the next call to Decode() will check the kConfigChange.


I copied all the tests from wolenetz@, thanks, Matthew!

BUG=306646

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230872 0039d316-1c4b-4281-b951-d872f2087c98
Disable low memory device check for JB and lower

Only switch to low memory device states for higher than JB.

BUG=310842
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230873 0039d316-1c4b-4281-b951-d872f2087c98
Add an UMA stat for AppCacheService reinitalization.

BUG=258191

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

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