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

Issue 61213009: Don't drop debug_info when posting to sync server fails (Closed)

Created:
7 years, 1 month ago by maniscalco
Modified:
7 years, 1 month ago
Reviewers:
rlarocque, Nicolas Zea
CC:
tim+watch_chromium.org, rsimha+watch_chromium.org, rlarocque
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Don't clear debug info until after it has been sent to the server. Replaced DebugInfoGetter::GetAndClearDebugInfo with GetDebugInfo and ClearDebugInfo so we can clear the debug info only after we have successfully sent it to the server. Moved MockDebugInfoGetter into its own file so it can be used by other tests. BUG=319937 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236591

Patch Set 1 #

Patch Set 2 : dirs #

Patch Set 3 : Cleanup after self review #

Patch Set 4 : Cleanup #

Patch Set 5 : Removed debug_info_sent/set_debug_info_sent. #

Total comments: 10

Patch Set 6 : Applied CR feedback. #

Patch Set 7 : Updated comment for MockDebugInfoGetter. #

Total comments: 4

Patch Set 8 : Applying CR feedback. #

Patch Set 9 : Removed erroneous use of SYNC_EXPORT_PRIVATE from MockDebugInfoGetter. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -103 lines) Patch
M sync/engine/download.h View 1 1 chunk +3 lines, -4 lines 0 comments Download
M sync/engine/download.cc View 1 2 3 4 5 4 chunks +14 lines, -17 lines 0 comments Download
M sync/engine/download_unittest.cc View 1 3 chunks +12 lines, -40 lines 0 comments Download
M sync/engine/syncer_unittest.cc View 1 2 6 chunks +57 lines, -1 line 0 comments Download
M sync/internal_api/debug_info_event_listener.h View 1 2 3 chunks +10 lines, -4 lines 0 comments Download
M sync/internal_api/debug_info_event_listener.cc View 1 2 3 4 5 6 7 2 chunks +14 lines, -8 lines 0 comments Download
M sync/internal_api/debug_info_event_listener_unittest.cc View 1 2 1 chunk +14 lines, -4 lines 0 comments Download
M sync/internal_api/public/sessions/model_neutral_state.h View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M sync/internal_api/public/sessions/model_neutral_state.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M sync/sessions/debug_info_getter.h View 1 2 2 chunks +7 lines, -4 lines 0 comments Download
M sync/sessions/status_controller.h View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M sync/sessions/status_controller.cc View 1 2 3 4 1 chunk +0 lines, -8 lines 0 comments Download
M sync/sync_tests.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M sync/test/engine/mock_connection_manager.h View 1 2 chunks +5 lines, -4 lines 0 comments Download
M sync/test/engine/mock_connection_manager.cc View 1 2 3 4 5 2 chunks +13 lines, -1 line 0 comments Download
A sync/test/sessions/mock_debug_info_getter.h View 1 2 3 4 5 6 7 8 1 chunk +39 lines, -0 lines 0 comments Download
A sync/test/sessions/mock_debug_info_getter.cc View 1 2 3 4 5 6 7 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
maniscalco
Hi Nicolas, would you please review this change? There were some comments in the code ...
7 years, 1 month ago (2013-11-19 22:41:03 UTC) #1
Nicolas Zea
LGTM with nits. Re: the once per session comments, I'm not sure those made sense ...
7 years, 1 month ago (2013-11-19 23:43:03 UTC) #2
maniscalco
Thanks for the feedback. All addressed. RFAL. https://codereview.chromium.org/61213009/diff/100001/sync/engine/download.cc File sync/engine/download.cc (right): https://codereview.chromium.org/61213009/diff/100001/sync/engine/download.cc#newcode405 sync/engine/download.cc:405: if (debug_info_getter) ...
7 years, 1 month ago (2013-11-20 01:03:32 UTC) #3
rlarocque
Two small nits. Otherwise LGTM. https://codereview.chromium.org/61213009/diff/200001/sync/internal_api/debug_info_event_listener.cc File sync/internal_api/debug_info_event_listener.cc (right): https://codereview.chromium.org/61213009/diff/200001/sync/internal_api/debug_info_event_listener.cc#newcode147 sync/internal_api/debug_info_event_listener.cc:147: void DebugInfoEventListener::GetDebugInfo( Does this ...
7 years, 1 month ago (2013-11-20 01:25:18 UTC) #4
maniscalco
Thanks for the feedback. https://codereview.chromium.org/61213009/diff/200001/sync/internal_api/debug_info_event_listener.cc File sync/internal_api/debug_info_event_listener.cc (right): https://codereview.chromium.org/61213009/diff/200001/sync/internal_api/debug_info_event_listener.cc#newcode147 sync/internal_api/debug_info_event_listener.cc:147: void DebugInfoEventListener::GetDebugInfo( On 2013/11/20 01:25:18, ...
7 years, 1 month ago (2013-11-20 01:50:01 UTC) #5
Nicolas Zea
LGTM
7 years, 1 month ago (2013-11-20 20:59:40 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maniscalco@chromium.org/61213009/360001
7 years, 1 month ago (2013-11-21 18:57:03 UTC) #7
commit-bot: I haz the power
7 years, 1 month ago (2013-11-21 20:55:47 UTC) #8
Message was sent while issue was closed.
Change committed as 236591

Powered by Google App Engine
This is Rietveld 408576698