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

Issue 202083005: Add activity recording capability to gcm internals page. User can refresh, start/stop recording, an… (Closed)

Created:
6 years, 9 months ago by juyik
Modified:
6 years, 8 months ago
CC:
chromium-reviews, arv+watch_chromium.org, Dmitry Titov
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add activity recording capability to gcm internals page. User can refresh, start/stop recording, and clear recording logs. Also added more information to the device info section and fixed a bug there. arv: owner review of chrome/browser/resources/*. jianli & fgorski please review the rest of the code, and zea for owner review of these code. BUG=341256 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=264313

Patch Set 1 #

Patch Set 2 : fix test break. #

Patch Set 3 : . #

Total comments: 64

Patch Set 4 : Address all code reviews. #

Total comments: 32

Patch Set 5 : Resolving merge conflicts #

Patch Set 6 : Address code review comments #

Patch Set 7 : Resolving another merge conflict. #

Total comments: 12

Patch Set 8 : Addressing jian's comments. #

Total comments: 4

Patch Set 9 : . #

Total comments: 4

Patch Set 10 : Addressing arv's comments. #

Total comments: 16

Patch Set 11 : Addressing zea's comments. #

Total comments: 20

Patch Set 12 : Addressing filip's comments. #

Total comments: 14

Patch Set 13 : Addressing comments from Nicolas and Filip. #

Patch Set 14 : Resolve merge conflicts and add gcm dependency to sync notifier. #

Patch Set 15 : Remove mcs proto h file from gcm_store.h. #

Patch Set 16 : Fixing test failure. #

Patch Set 17 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+834 lines, -73 lines) Patch
M chrome/browser/resources/gcm_internals.css View 1 2 3 4 5 6 7 8 9 1 chunk +19 lines, -3 lines 0 comments Download
M chrome/browser/resources/gcm_internals.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +63 lines, -19 lines 0 comments Download
M chrome/browser/resources/gcm_internals.js View 1 2 3 4 5 6 7 8 9 10 4 chunks +80 lines, -2 lines 0 comments Download
M chrome/browser/services/gcm/gcm_client_mock.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/services/gcm/gcm_client_mock.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/services/gcm/gcm_profile_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +12 lines, -7 lines 0 comments Download
M chrome/browser/services/gcm/gcm_profile_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +43 lines, -10 lines 0 comments Download
M chrome/browser/ui/webui/gcm_internals_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +87 lines, -4 lines 0 comments Download
M google_apis/gcm/engine/checkin_request.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M google_apis/gcm/engine/gcm_store.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -7 lines 0 comments Download
M google_apis/gcm/engine/mcs_client.h View 1 2 3 4 5 6 7 8 9 10 6 chunks +21 lines, -3 lines 0 comments Download
M google_apis/gcm/engine/mcs_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +24 lines, -1 line 0 comments Download
M google_apis/gcm/engine/mcs_client_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +8 lines, -3 lines 0 comments Download
M google_apis/gcm/gcm.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -1 line 0 comments Download
M google_apis/gcm/gcm_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +13 lines, -0 lines 0 comments Download
M google_apis/gcm/gcm_client.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -1 line 0 comments Download
M google_apis/gcm/gcm_client_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +13 lines, -1 line 0 comments Download
M google_apis/gcm/gcm_client_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +31 lines, -5 lines 0 comments Download
M google_apis/gcm/gcm_client_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +12 lines, -6 lines 0 comments Download
A google_apis/gcm/monitoring/gcm_stats_recorder.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +101 lines, -0 lines 0 comments Download
A google_apis/gcm/monitoring/gcm_stats_recorder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +150 lines, -0 lines 0 comments Download
A google_apis/gcm/monitoring/gcm_stats_recorder_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +136 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
juyik
6 years, 9 months ago (2014-03-18 03:00:05 UTC) #1
fgorski
https://codereview.chromium.org/202083005/diff/40001/chrome/browser/resources/gcm_internals.html File chrome/browser/resources/gcm_internals.html (right): https://codereview.chromium.org/202083005/diff/40001/chrome/browser/resources/gcm_internals.html#newcode118 chrome/browser/resources/gcm_internals.html:118: <h2>Checkin Log</h2> Last checkin information should be a part ...
6 years, 9 months ago (2014-03-18 21:28:36 UTC) #2
jianli
https://codereview.chromium.org/202083005/diff/40001/chrome/browser/resources/gcm_internals.js File chrome/browser/resources/gcm_internals.js (right): https://codereview.chromium.org/202083005/diff/40001/chrome/browser/resources/gcm_internals.js#newcode69 chrome/browser/resources/gcm_internals.js:69: } else nit: add brackets for else to be ...
6 years, 9 months ago (2014-03-18 23:53:23 UTC) #3
juyik
Per Filip's suggestion, I have split my original big patch. This patch only records sending ...
6 years, 9 months ago (2014-03-20 01:09:52 UTC) #4
jianli
https://codereview.chromium.org/202083005/diff/60001/chrome/browser/services/gcm/gcm_profile_service.cc File chrome/browser/services/gcm/gcm_profile_service.cc (right): https://codereview.chromium.org/202083005/diff/60001/chrome/browser/services/gcm/gcm_profile_service.cc#newcode1232 chrome/browser/services/gcm/gcm_profile_service.cc:1232: for (RegistrationInfoMap::const_iterator it = registration_info_map_.begin(); FYI, the registration info ...
6 years, 9 months ago (2014-03-21 18:25:26 UTC) #5
arv (Not doing code reviews)
https://codereview.chromium.org/202083005/diff/60001/chrome/browser/resources/gcm_internals.html File chrome/browser/resources/gcm_internals.html (right): https://codereview.chromium.org/202083005/diff/60001/chrome/browser/resources/gcm_internals.html#newcode16 chrome/browser/resources/gcm_internals.html:16: <table cellpadding="5" cellspacing="0"> Move to css https://codereview.chromium.org/202083005/diff/60001/chrome/browser/resources/gcm_internals.html#newcode16 chrome/browser/resources/gcm_internals.html:16: <table ...
6 years, 9 months ago (2014-03-24 18:47:05 UTC) #6
juyik
https://codereview.chromium.org/202083005/diff/60001/chrome/browser/resources/gcm_internals.html File chrome/browser/resources/gcm_internals.html (right): https://codereview.chromium.org/202083005/diff/60001/chrome/browser/resources/gcm_internals.html#newcode16 chrome/browser/resources/gcm_internals.html:16: <table cellpadding="5" cellspacing="0"> On 2014/03/24 18:47:05, arv wrote: > ...
6 years, 9 months ago (2014-03-26 04:06:03 UTC) #7
jianli
https://codereview.chromium.org/202083005/diff/140002/chrome/browser/services/gcm/gcm_profile_service.h File chrome/browser/services/gcm/gcm_profile_service.h (right): https://codereview.chromium.org/202083005/diff/140002/chrome/browser/services/gcm/gcm_profile_service.h#newcode134 chrome/browser/services/gcm/gcm_profile_service.h:134: // Enables/disables GCM activity recording, and then returns the ...
6 years, 9 months ago (2014-03-26 20:17:17 UTC) #8
juyik
https://codereview.chromium.org/202083005/diff/140002/chrome/browser/services/gcm/gcm_profile_service.h File chrome/browser/services/gcm/gcm_profile_service.h (right): https://codereview.chromium.org/202083005/diff/140002/chrome/browser/services/gcm/gcm_profile_service.h#newcode134 chrome/browser/services/gcm/gcm_profile_service.h:134: // Enables/disables GCM activity recording, and then returns the ...
6 years, 9 months ago (2014-03-26 20:57:31 UTC) #9
juyik
ping.
6 years, 9 months ago (2014-03-26 22:46:25 UTC) #10
jianli
lgtm https://codereview.chromium.org/202083005/diff/190001/chrome/browser/ui/webui/gcm_internals_ui.cc File chrome/browser/ui/webui/gcm_internals_ui.cc (right): https://codereview.chromium.org/202083005/diff/190001/chrome/browser/ui/webui/gcm_internals_ui.cc#newcode117 chrome/browser/ui/webui/gcm_internals_ui.cc:117: if (stats->unacked_queue_size > 0) You need to do ...
6 years, 9 months ago (2014-03-26 23:25:18 UTC) #11
juyik
https://codereview.chromium.org/202083005/diff/190001/chrome/browser/ui/webui/gcm_internals_ui.cc File chrome/browser/ui/webui/gcm_internals_ui.cc (right): https://codereview.chromium.org/202083005/diff/190001/chrome/browser/ui/webui/gcm_internals_ui.cc#newcode117 chrome/browser/ui/webui/gcm_internals_ui.cc:117: if (stats->unacked_queue_size > 0) On 2014/03/26 23:25:18, jianli wrote: ...
6 years, 9 months ago (2014-03-26 23:49:58 UTC) #12
arv (Not doing code reviews)
js/html/css LGTM https://codereview.chromium.org/202083005/diff/210001/chrome/browser/resources/gcm_internals.html File chrome/browser/resources/gcm_internals.html (right): https://codereview.chromium.org/202083005/diff/210001/chrome/browser/resources/gcm_internals.html#newcode26 chrome/browser/resources/gcm_internals.html:26: <td class="row-caption"> Instead of putting row-caption on ...
6 years, 9 months ago (2014-03-27 18:17:03 UTC) #13
juyik
https://codereview.chromium.org/202083005/diff/210001/chrome/browser/resources/gcm_internals.html File chrome/browser/resources/gcm_internals.html (right): https://codereview.chromium.org/202083005/diff/210001/chrome/browser/resources/gcm_internals.html#newcode26 chrome/browser/resources/gcm_internals.html:26: <td class="row-caption"> On 2014/03/27 18:17:03, arv wrote: > Instead ...
6 years, 9 months ago (2014-03-27 18:40:11 UTC) #14
Nicolas Zea
https://codereview.chromium.org/202083005/diff/230001/google_apis/gcm/engine/mcs_client.cc File google_apis/gcm/engine/mcs_client.cc (right): https://codereview.chromium.org/202083005/diff/230001/google_apis/gcm/engine/mcs_client.cc#newcode509 google_apis/gcm/engine/mcs_client.cc:509: recorder_->RecordSentToWire( This won't record login requests or other non-data ...
6 years, 9 months ago (2014-03-27 18:55:41 UTC) #15
juyik
https://codereview.chromium.org/202083005/diff/230001/google_apis/gcm/engine/mcs_client.cc File google_apis/gcm/engine/mcs_client.cc (right): https://codereview.chromium.org/202083005/diff/230001/google_apis/gcm/engine/mcs_client.cc#newcode509 google_apis/gcm/engine/mcs_client.cc:509: recorder_->RecordSentToWire( On 2014/03/27 18:55:42, Nicolas Zea wrote: > This ...
6 years, 9 months ago (2014-03-27 20:05:10 UTC) #16
fgorski
Sorry for a last review, this was a really busy week. https://codereview.chromium.org/202083005/diff/250001/chrome/browser/services/gcm/gcm_profile_service.cc File chrome/browser/services/gcm/gcm_profile_service.cc (right): ...
6 years, 9 months ago (2014-03-29 05:09:28 UTC) #17
juyik
https://codereview.chromium.org/202083005/diff/250001/chrome/browser/services/gcm/gcm_profile_service.cc File chrome/browser/services/gcm/gcm_profile_service.cc (right): https://codereview.chromium.org/202083005/diff/250001/chrome/browser/services/gcm/gcm_profile_service.cc#newcode382 chrome/browser/services/gcm/gcm_profile_service.cc:382: stats.gcm_client_created = true; On 2014/03/29 05:09:29, Filip Gorski wrote: ...
6 years, 8 months ago (2014-03-31 22:19:23 UTC) #18
fgorski
lgtm. Please make sure Nicolas comments on the directory where the recorder should be placed. ...
6 years, 8 months ago (2014-04-01 03:36:28 UTC) #19
Nicolas Zea
LGTM with some nits. Also, agree with Filip that it makes sense to move the ...
6 years, 8 months ago (2014-04-01 18:53:21 UTC) #20
juyik
Moved the recorder files to a monitoring sub folder. https://codereview.chromium.org/202083005/diff/270001/google_apis/gcm/gcm_client.h File google_apis/gcm/gcm_client.h (right): https://codereview.chromium.org/202083005/diff/270001/google_apis/gcm/gcm_client.h#newcode108 google_apis/gcm/gcm_client.h:108: ...
6 years, 8 months ago (2014-04-01 22:40:35 UTC) #21
juyik
The CQ bit was checked by juyik@chromium.org
6 years, 8 months ago (2014-04-02 06:53:39 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/juyik@chromium.org/202083005/290001
6 years, 8 months ago (2014-04-02 06:54:21 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-02 07:26:35 UTC) #24
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) base_unittests, compile, components_unittests, content_unittests, crypto_unittests, net_unittests, ...
6 years, 8 months ago (2014-04-02 07:26:36 UTC) #25
juyik
The CQ bit was checked by juyik@chromium.org
6 years, 8 months ago (2014-04-15 23:21:06 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/juyik@chromium.org/202083005/350001
6 years, 8 months ago (2014-04-15 23:21:51 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/juyik@chromium.org/202083005/350001
6 years, 8 months ago (2014-04-16 01:32:46 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-16 06:11:28 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 8 months ago (2014-04-16 06:11:29 UTC) #30
juyik
The CQ bit was checked by juyik@chromium.org
6 years, 8 months ago (2014-04-16 18:06:29 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/juyik@chromium.org/202083005/360001
6 years, 8 months ago (2014-04-16 18:07:20 UTC) #32
commit-bot: I haz the power
6 years, 8 months ago (2014-04-16 21:41:47 UTC) #33
Message was sent while issue was closed.
Change committed as 264313

Powered by Google App Engine
This is Rietveld 408576698