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

Issue 2089413002: [Offline Pages] Create a event/activity logger (Closed)

Created:
4 years, 6 months ago by chili
Modified:
4 years, 5 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
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Offline Pages] Create a event/activity logger This is used by both the offline page model and the request coordinator. BUG=609570 Committed: https://crrev.com/70608500dc1a8019024023710ed4267a90069e43 Cr-Commit-Position: refs/heads/master@{#402156}

Patch Set 1 #

Total comments: 51

Patch Set 2 : Address initial comments #

Total comments: 29

Patch Set 3 : Addressing second round comments #

Patch Set 4 : Add ability to retrieve whether we are currently logging #

Total comments: 4

Patch Set 5 : add dcheck #

Patch Set 6 : rebase #

Patch Set 7 : add dcheck #

Patch Set 8 : try test fix #

Patch Set 9 : try test fix 2 #

Patch Set 10 : try test fix 3 #

Patch Set 11 : try test fix 4 #

Patch Set 12 : try test fix 5 #

Patch Set 13 : rebase-update #

Patch Set 14 : try test fix 6 #

Patch Set 15 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+423 lines, -6 lines) Patch
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M components/offline_pages.gypi View 1 4 chunks +8 lines, -2 lines 0 comments Download
M components/offline_pages/BUILD.gn View 3 chunks +5 lines, -0 lines 0 comments Download
M components/offline_pages/background/BUILD.gn View 1 2 chunks +3 lines, -0 lines 0 comments Download
M components/offline_pages/background/request_coordinator.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +7 lines, -0 lines 0 comments Download
M components/offline_pages/background/request_coordinator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -3 lines 0 comments Download
A components/offline_pages/background/request_coordinator_event_logger.h View 1 2 1 chunk +25 lines, -0 lines 0 comments Download
A components/offline_pages/background/request_coordinator_event_logger.cc View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
A components/offline_pages/background/request_coordinator_event_logger_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +59 lines, -0 lines 0 comments Download
A components/offline_pages/offline_event_logger.h View 1 2 3 1 chunk +59 lines, -0 lines 0 comments Download
A components/offline_pages/offline_event_logger.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +59 lines, -0 lines 0 comments Download
M components/offline_pages/offline_page_model.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
A components/offline_pages/offline_page_model_event_logger.h View 1 1 chunk +35 lines, -0 lines 0 comments Download
A components/offline_pages/offline_page_model_event_logger.cc View 1 chunk +30 lines, -0 lines 0 comments Download
A components/offline_pages/offline_page_model_event_logger_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +75 lines, -0 lines 0 comments Download
M components/offline_pages/offline_page_model_impl.h View 1 2 3 4 5 3 chunks +6 lines, -0 lines 0 comments Download
M components/offline_pages/offline_page_model_impl.cc View 1 2 3 4 5 6 7 5 chunks +15 lines, -0 lines 0 comments Download
M components/offline_pages/stub_offline_page_model.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/offline_pages/stub_offline_page_model.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 27 (10 generated)
fgorski
https://codereview.chromium.org/2089413002/diff/1/components/offline_pages/background/request_coordinator.h File components/offline_pages/background/request_coordinator.h (right): https://codereview.chromium.org/2089413002/diff/1/components/offline_pages/background/request_coordinator.h#newcode77 components/offline_pages/background/request_coordinator.h:77: void SetIsLogging(bool should_log); I started review in the middle, ...
4 years, 6 months ago (2016-06-23 16:34:07 UTC) #3
chili
4 years, 6 months ago (2016-06-23 18:47:50 UTC) #4
dewittj
https://codereview.chromium.org/2089413002/diff/1/components/offline_pages/offline_event_logger.cc File components/offline_pages/offline_event_logger.cc (right): https://codereview.chromium.org/2089413002/diff/1/components/offline_pages/offline_event_logger.cc#newcode35 components/offline_pages/offline_event_logger.cc:35: std::time_t current_time = std::time(nullptr); This is to low-leve. I ...
4 years, 6 months ago (2016-06-23 22:19:03 UTC) #5
Pete Williamson
Overall, I'm very impressed on how fast you went from being brand new to chrome ...
4 years, 6 months ago (2016-06-24 00:38:32 UTC) #7
chili
Thanks for all the comments :) PTAL https://codereview.chromium.org/2089413002/diff/1/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2089413002/diff/1/components/offline_pages/background/request_coordinator.cc#newcode154 components/offline_pages/background/request_coordinator.cc:154: void RequestCoordinator::SetIsLogging(bool ...
4 years, 6 months ago (2016-06-24 02:45:52 UTC) #8
Pete Williamson
Mostly looks good, two issues left. https://codereview.chromium.org/2089413002/diff/1/components/offline_pages/background/request_coordinator_event_logger_unittest.cc File components/offline_pages/background/request_coordinator_event_logger_unittest.cc (right): https://codereview.chromium.org/2089413002/diff/1/components/offline_pages/background/request_coordinator_event_logger_unittest.cc#newcode27 components/offline_pages/background/request_coordinator_event_logger_unittest.cc:27: EXPECT_EQ(1, log.size()); On ...
4 years, 6 months ago (2016-06-24 16:52:58 UTC) #9
fgorski
Looks even better than the last time. A few comments, mostly nits. https://codereview.chromium.org/2089413002/diff/1/components/offline_pages/offline_event_logger.cc File components/offline_pages/offline_event_logger.cc ...
4 years, 6 months ago (2016-06-24 18:17:34 UTC) #10
dewittj
https://codereview.chromium.org/2089413002/diff/20001/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2089413002/diff/20001/components/offline_pages/background/request_coordinator.cc#newcode160 components/offline_pages/background/request_coordinator.cc:160: "Saved", If this is the only place this is ...
4 years, 6 months ago (2016-06-24 18:32:49 UTC) #11
chili
Thanks for all the comments :) I *think* I addressed all of them. Please bump ...
4 years, 6 months ago (2016-06-24 20:30:11 UTC) #12
Pete Williamson
lgtm
4 years, 6 months ago (2016-06-24 20:51:02 UTC) #13
fgorski
lgtm https://codereview.chromium.org/2089413002/diff/20001/components/offline_pages/background/request_coordinator.h File components/offline_pages/background/request_coordinator.h (right): https://codereview.chromium.org/2089413002/diff/20001/components/offline_pages/background/request_coordinator.h#newcode81 components/offline_pages/background/request_coordinator.h:81: bool is_busy() { On 2016/06/24 20:30:10, chili wrote: ...
4 years, 6 months ago (2016-06-24 21:00:51 UTC) #14
dewittj
lgtm https://codereview.chromium.org/2089413002/diff/60001/components/offline_pages/offline_event_logger.cc File components/offline_pages/offline_event_logger.cc (right): https://codereview.chromium.org/2089413002/diff/60001/components/offline_pages/offline_event_logger.cc#newcode28 components/offline_pages/offline_event_logger.cc:28: void OfflineEventLogger::RecordActivity(const std::string& activity) { any chance for ...
4 years, 6 months ago (2016-06-24 21:16:41 UTC) #15
chili
Thanks everyone :) https://codereview.chromium.org/2089413002/diff/60001/components/offline_pages/offline_event_logger.cc File components/offline_pages/offline_event_logger.cc (right): https://codereview.chromium.org/2089413002/diff/60001/components/offline_pages/offline_event_logger.cc#newcode28 components/offline_pages/offline_event_logger.cc:28: void OfflineEventLogger::RecordActivity(const std::string& activity) { On ...
4 years, 6 months ago (2016-06-24 21:28:26 UTC) #17
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/2089413002/240001
4 years, 5 months ago (2016-06-26 20:17:26 UTC) #20
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/2089413002/280001
4 years, 5 months ago (2016-06-27 11:55:22 UTC) #23
commit-bot: I haz the power
Committed patchset #15 (id:280001)
4 years, 5 months ago (2016-06-27 12:46:33 UTC) #25
commit-bot: I haz the power
4 years, 5 months ago (2016-06-27 12:48:37 UTC) #27
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/70608500dc1a8019024023710ed4267a90069e43
Cr-Commit-Position: refs/heads/master@{#402156}

Powered by Google App Engine
This is Rietveld 408576698