Add tests for redirect responses from SafeBrowsingProtocolManager.

This also fixes two corner-case bugs discovered along the way:

 a) If the final redirect response is empty, UpdateFinished() is never called on SafeBrowsingService.

 b) If the last redirect response takes longer to persist the chunks to the database than the interval to the next update, the next update will start before the previous one completed.

BUG=158246,161550,161551

Review URL: https://chromiumcodereview.appspot.com/11419041

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