[sync] Fix malformed JSON bug in chrome://sync due to failed datatypes
[sync] Fix malformed JSON bug in chrome://sync due to failed datatypes

If a failed datatype error occurs during sync and you navigate to
chrome://sync, the failed datatype error message contains an unnecessary
new line character in it.

This violates the JSON format, and results in a parse error while trying
to process the data on the sync internals page.

This patch removes the new line character from the failed datatypes
error message and makes sure the json in chrome://sync is valid.

BUG=124017
TEST=Open chrome://sync when there is a failed datatype error; ensure no new lines

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

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@132807 0039d316-1c4b-4281-b951-d872f2087c98

yitian134/chromium,ropik/chromium,ropik/chromium,ropik/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,ropik/chromium,yitian134/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,adobe/chromium,adobe/chromium