summaryrefslogtreecommitdiffstats
path: root/chrome/chrome_tests.gypi
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-15 20:54:24 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-15 20:54:24 +0000
commitf1e6e0218795cf635c877a60dbd5e8be784b381d (patch)
tree9b11d48476580205972516bc2765586ca280d002 /chrome/chrome_tests.gypi
parent9062e85d56308d06cfb0926b0eedee313283a44d (diff)
downloadchromium_src-f1e6e0218795cf635c877a60dbd5e8be784b381d.zip
chromium_src-f1e6e0218795cf635c877a60dbd5e8be784b381d.tar.gz
chromium_src-f1e6e0218795cf635c877a60dbd5e8be784b381d.tar.bz2
[Sync] fix about:sync crash with unrecoverable error
If the client had encountered an unrecoverable error typing about:sync would crash because the client code would try to dereference the backendhost for the purpose of printing the model group information(by this time backendhost would have been released). The fix is to bail out of printing the model information if the client had encountered an unrecoverable error. however we would still print the client had encountered an urecoverable error and the line number etc. In the process moved a bunch of code related to collecting about information for sync, from browser_about_handler.cc to sync_ui_util.cc. The refactoing helps us in unit testing by passing in a mock service object. BUG=55503 TEST=Wrote a new unit test for it. ConstructAboutInformationWithUnrecoverableErrorTest. Also tested by pretending one of the datatypes generated an unrecoverable error in the debugger. Original patch by lipalani@google.com Original review: http://codereview.chromium.org/3715002 Review URL: http://codereview.chromium.org/3810011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62789 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome_tests.gypi')
-rw-r--r--chrome/chrome_tests.gypi1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/chrome_tests.gypi b/chrome/chrome_tests.gypi
index 7183c5b5..4e8cc6c 100644
--- a/chrome/chrome_tests.gypi
+++ b/chrome/chrome_tests.gypi
@@ -1472,6 +1472,7 @@
'browser/sync/signin_manager_unittest.cc',
'browser/sync/sync_setup_wizard_unittest.cc',
'browser/sync/sync_ui_util_mac_unittest.mm',
+ 'browser/sync/sync_ui_util_unittest.cc',
'browser/sync/test_profile_sync_service.h',
'browser/sync/util/cryptographer_unittest.cc',
'browser/sync/util/nigori_unittest.cc',