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

Issue 2324493005: [Offline Pages] Adds event logs for requests dropped due to number of start or complete attempts. (Closed)

Created:
4 years, 3 months ago by dougarnett
Modified:
4 years, 3 months ago
CC:
chromium-reviews, romax+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Offline Pages] Adds event logs for requests dropped due to number of start or complete attempts. BUG=645155 Committed: https://crrev.com/32febbf7cb75de2bcbd277cdbc994749ce9e6d48 Cr-Commit-Position: refs/heads/master@{#418064}

Patch Set 1 #

Patch Set 2 : Fix up unittests #

Patch Set 3 : Merge #

Total comments: 11

Patch Set 4 : Return enum value as string if no specific switch case for it #

Patch Set 5 : Addresses petewil feedback #

Patch Set 6 : Fixed a new comment and also made the new comments a bit less fragile to specific logger method nam… #

Total comments: 6

Patch Set 7 : Addresses dimich feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -60 lines) Patch
M components/offline_pages/background/offliner.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/offline_pages/background/request_coordinator.cc View 1 2 3 4 5 6 6 chunks +19 lines, -11 lines 0 comments Download
M components/offline_pages/background/request_coordinator_event_logger.h View 2 chunks +12 lines, -5 lines 0 comments Download
M components/offline_pages/background/request_coordinator_event_logger.cc View 1 2 3 4 5 6 2 chunks +46 lines, -11 lines 0 comments Download
M components/offline_pages/background/request_coordinator_event_logger_unittest.cc View 1 4 chunks +20 lines, -15 lines 0 comments Download
M components/offline_pages/background/request_notifier.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M components/offline_pages/background/request_picker.h View 1 2 3 4 3 chunks +5 lines, -1 line 0 comments Download
M components/offline_pages/background/request_picker.cc View 1 2 3 4 5 6 2 chunks +11 lines, -5 lines 0 comments Download
M components/offline_pages/background/request_picker_unittest.cc View 1 2 3 4 7 chunks +13 lines, -12 lines 0 comments Download

Messages

Total messages: 47 (35 generated)
dougarnett
Also shortened the event log messages a bit.
4 years, 3 months ago (2016-09-09 15:59:57 UTC) #16
Pete Williamson
https://codereview.chromium.org/2324493005/diff/40001/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2324493005/diff/40001/components/offline_pages/background/request_coordinator.cc#newcode199 components/offline_pages/background/request_coordinator.cc:199: event_logger_.RecordDroppedSavePageRequest( This is logging to the offline-internals page, not ...
4 years, 3 months ago (2016-09-09 17:16:19 UTC) #19
Pete Williamson
https://codereview.chromium.org/2324493005/diff/40001/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2324493005/diff/40001/components/offline_pages/background/request_coordinator.cc#newcode199 components/offline_pages/background/request_coordinator.cc:199: event_logger_.RecordDroppedSavePageRequest( On 2016/09/09 17:16:19, Pete Williamson wrote: > This ...
4 years, 3 months ago (2016-09-09 22:08:31 UTC) #20
dougarnett
Adding Dmitry as second reviewer wrt event logging philosophy https://codereview.chromium.org/2324493005/diff/40001/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2324493005/diff/40001/components/offline_pages/background/request_coordinator.cc#newcode199 components/offline_pages/background/request_coordinator.cc:199: ...
4 years, 3 months ago (2016-09-09 23:58:21 UTC) #24
Pete Williamson
https://codereview.chromium.org/2324493005/diff/40001/components/offline_pages/background/request_coordinator_event_logger.cc File components/offline_pages/background/request_coordinator_event_logger.cc (right): https://codereview.chromium.org/2324493005/diff/40001/components/offline_pages/background/request_coordinator_event_logger.cc#newcode36 components/offline_pages/background/request_coordinator_event_logger.cc:36: static std::string BackgroundSavePageResultToString( On 2016/09/09 23:58:21, dougarnett wrote: > ...
4 years, 3 months ago (2016-09-10 00:14:13 UTC) #25
dougarnett
https://codereview.chromium.org/2324493005/diff/40001/components/offline_pages/background/request_coordinator_event_logger.cc File components/offline_pages/background/request_coordinator_event_logger.cc (right): https://codereview.chromium.org/2324493005/diff/40001/components/offline_pages/background/request_coordinator_event_logger.cc#newcode36 components/offline_pages/background/request_coordinator_event_logger.cc:36: static std::string BackgroundSavePageResultToString( On 2016/09/10 00:14:13, Pete Williamson wrote: ...
4 years, 3 months ago (2016-09-12 18:31:38 UTC) #32
Pete Williamson
lgtm
4 years, 3 months ago (2016-09-12 19:19:26 UTC) #33
Dmitry Titov
Totally good to have local logs for debugging. LGTM with couple of small nits: https://codereview.chromium.org/2324493005/diff/100001/components/offline_pages/background/request_coordinator.cc ...
4 years, 3 months ago (2016-09-12 19:43:14 UTC) #36
dougarnett
https://codereview.chromium.org/2324493005/diff/100001/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2324493005/diff/100001/components/offline_pages/background/request_coordinator.cc#newcode202 components/offline_pages/background/request_coordinator.cc:202: BackgroundSavePageResult::START_COUNT_EXCEEDED, request->request_id()); On 2016/09/12 19:43:13, Dmitry Titov wrote: > ...
4 years, 3 months ago (2016-09-12 20:51:49 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2324493005/120001
4 years, 3 months ago (2016-09-12 21:44:23 UTC) #44
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 3 months ago (2016-09-12 21:50:21 UTC) #45
commit-bot: I haz the power
4 years, 3 months ago (2016-09-12 21:53:26 UTC) #47
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/32febbf7cb75de2bcbd277cdbc994749ce9e6d48
Cr-Commit-Position: refs/heads/master@{#418064}

Powered by Google App Engine
This is Rietveld 408576698