Re-land "Rollback: check for can_rollback before performing rollback."

This CL is a re-land of 4acbaa6864842f3464cf8816b01faf92424ead06.
In addition to re-landing it adds a build number check and unittests
that verify this functionality.

BUG=chromium:366508
TEST=Unittests

Change-Id: I6fbed8ca9d627526e35a189e2cdae037ae2d3ed1
Reviewed-on: https://chromium-review.googlesource.com/203162
Tested-by: Chris Sosa <sosa@chromium.org>
Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
Commit-Queue: Chris Sosa <sosa@chromium.org>
2 files changed