Add clearing of termios bits related to translating input/output.

BUG=chromium:290329
TEST=build ok, tested serial API for correct behaviour

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

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

This removes the DCHECKS that are no longer valid and fixes the update
logic to work correctly for FavoriteState. These changes are needed for
https://codereview.chromium.org/23609047/

BUG=126870
R=pneubeck@chromium.org

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

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