drive: Move task rerun logic from EntryUpdatePerformer to SyncClient

This logic should be applied for all sync tasks.

BUG=260538
TEST=unit_tests
R=kinaba@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239138 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 239138
Do only restore the session cookies for the primary user

After all the fixes for the issue have landed my old setup still didn't work. Xiyuan figured out that two refresh tokens were set in the process and this patch ignores incorrect refresh token requests.

BUG=323226
TEST=visual

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239139 0039d316-1c4b-4281-b951-d872f2087c98
Check empty mimetype and codecs explicitly in KeySystems.

In KeySystems::IsSupportedKeySystemWithContainerAndCodec(), check empty mimetype
and codecs instead of relying on an empty entry in the supported codecs list.

This also enables support for empty mimetype, which will be needed when we
implement IsTypeSupported in the EME WD spec.

BUG=164303
TEST=Fixed KeySystemsTest.

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

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