Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Issue 9978017: [Sync] - Upload the callstacks for errors so that the line number of error is in callstack. (Closed)

Created:
8 years, 8 months ago by lipalani1
Modified:
8 years, 8 months ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), akalin, tim (not reviewing)
Visibility:
Public.

Description

For legacy types(that are not in sync api) we uploaded the call stacks after the error has happened. To solve this we introduce a new method called CreateAndUploadError and eventually this would be the only method than can create a non default SyncError. (Non legacy types have to be changed before we make this constructor private). When the error is created we upload from there as well. This gives us the following benefits: 1. We have the line number that caused the error in call stack. 2. Once this is fully implemented we dont have the possibility of double uploading of the same error. BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=131544

Patch Set 1 #

Patch Set 2 : For reivew. #

Total comments: 12

Patch Set 3 : For review. #

Total comments: 21

Patch Set 4 : For review. #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : For try jobs and committing. #

Patch Set 8 : For try jobs. #

Patch Set 9 : For submitting. #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+427 lines, -272 lines) Patch
M chrome/browser/sync/glue/bookmark_data_type_controller_unittest.cc View 1 2 3 4 3 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/sync/glue/bookmark_model_associator.h View 1 2 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/sync/glue/bookmark_model_associator.cc View 1 2 8 chunks +44 lines, -31 lines 0 comments Download
M chrome/browser/sync/glue/change_processor_mock.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/data_type_controller.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/data_type_controller.cc View 1 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/data_type_error_handler.h View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/data_type_error_handler_mock.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/frontend_data_type_controller.cc View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/frontend_data_type_controller_unittest.cc View 1 2 3 4 4 chunks +11 lines, -8 lines 0 comments Download
M chrome/browser/sync/glue/model_associator.h View 1 2 3 2 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/sync/glue/model_associator_mock.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/new_non_frontend_data_type_controller_unittest.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/non_frontend_data_type_controller.cc View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/non_frontend_data_type_controller_unittest.cc View 1 2 3 6 chunks +16 lines, -11 lines 0 comments Download
M chrome/browser/sync/glue/password_change_processor.cc View 1 2 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/password_model_associator.h View 4 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/sync/glue/password_model_associator.cc View 1 2 11 chunks +41 lines, -35 lines 0 comments Download
M chrome/browser/sync/glue/session_change_processor.cc View 1 2 3 4 1 chunk +5 lines, -7 lines 0 comments Download
M chrome/browser/sync/glue/session_model_associator.h View 1 2 3 4 5 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/sync/glue/session_model_associator.cc View 1 2 3 4 12 chunks +52 lines, -26 lines 0 comments Download
M chrome/browser/sync/glue/theme_data_type_controller_unittest.cc View 1 2 3 4 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/sync/glue/theme_model_associator.h View 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/theme_model_associator.cc View 1 2 3 chunks +15 lines, -12 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_change_processor.cc View 1 2 2 chunks +11 lines, -7 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_model_associator.h View 5 chunks +12 lines, -8 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_model_associator.cc View 1 2 3 16 chunks +76 lines, -55 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_model_associator_unittest.cc View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.cc View 1 2 3 4 4 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_bookmark_unittest.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_password_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_session_unittest.cc View 1 2 3 4 5 6 7 8 chunks +13 lines, -8 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_typed_url_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +15 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
lipalani1
Please review. I have changed AssociatorInterface because of which all the classes that inherited from ...
8 years, 8 months ago (2012-04-05 00:00:17 UTC) #1
Andrew T Wilson (Slow)
LGTM with some nits. http://codereview.chromium.org/9978017/diff/2001/chrome/browser/sync/glue/typed_url_change_processor.cc File chrome/browser/sync/glue/typed_url_change_processor.cc (right): http://codereview.chromium.org/9978017/diff/2001/chrome/browser/sync/glue/typed_url_change_processor.cc#newcode269 chrome/browser/sync/glue/typed_url_change_processor.cc:269: &pending_updated_urls_, I don't think this ...
8 years, 8 months ago (2012-04-05 00:33:19 UTC) #2
Nicolas Zea
How are you planning on using this with newer datatypes?
8 years, 8 months ago (2012-04-05 19:09:03 UTC) #3
Nicolas Zea
http://codereview.chromium.org/9978017/diff/6001/chrome/browser/sync/glue/data_type_controller.cc File chrome/browser/sync/glue/data_type_controller.cc (right): http://codereview.chromium.org/9978017/diff/6001/chrome/browser/sync/glue/data_type_controller.cc#newcode25 chrome/browser/sync/glue/data_type_controller.cc:25: ChromeReportUnrecoverableError(); This probably needs to be removed now. We'll ...
8 years, 8 months ago (2012-04-05 22:08:58 UTC) #4
lipalani1
I have addressed both Drew and Nicolas's comments. In retrospect I should have sent seperate ...
8 years, 8 months ago (2012-04-05 22:51:03 UTC) #5
Nicolas Zea
LGTM with some nits and a question. Also, keep in mind SyncModelHasUserCreatedNodes will need to ...
8 years, 8 months ago (2012-04-06 19:49:47 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lipalani@chromium.org/9978017/19034
8 years, 8 months ago (2012-04-10 05:25:50 UTC) #7
commit-bot: I haz the power
8 years, 8 months ago (2012-04-10 07:28:19 UTC) #8
Change committed as 131544

Powered by Google App Engine
This is Rietveld 408576698