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

Issue 1515153003: Enable chrome://gcm-internals on Android (Closed)

Created:
5 years ago by Peter Beverloo
Modified:
5 years ago
CC:
chromium-reviews, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable chrome://gcm-internals on Android The page provides super valuable information to developers who are wondering why their messages aren't arriving, which can be due to many reasons. The page gives insight on whether Chrome received them. This CL enables the page on Android. It doesn't display nearly as much information as the desktop page, but will display (un)registrations and received data messages. It adds 7.5KB to the ChromePublic.apk size. I've also added back some padding around the buttons since I found an open issue about that by accident. BUG=569127, 499179 Committed: https://crrev.com/1ed82985c317377bff21e3f66a20d4ef87ec69b1 Cr-Commit-Position: refs/heads/master@{#366402}

Patch Set 1 #

Patch Set 2 : #

Total comments: 17

Patch Set 3 : #

Total comments: 17

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Patch Set 6 : gn silliness #

Patch Set 7 : iOS changes #

Patch Set 8 : .. #

Total comments: 2

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+564 lines, -171 lines) Patch
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/gcm_internals_ui.cc View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M chrome/common/url_constants.cc View 1 2 2 chunks +1 line, -1 line 0 comments Download
M components/components_tests.gyp View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M components/gcm_driver.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M components/gcm_driver/BUILD.gn View 1 2 3 4 5 3 chunks +11 lines, -3 lines 0 comments Download
M components/gcm_driver/fake_gcm_driver.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/gcm_driver/fake_gcm_driver.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/gcm_driver/gcm_client_impl.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/gcm_driver/gcm_driver.h View 1 2 3 2 chunks +10 lines, -4 lines 0 comments Download
M components/gcm_driver/gcm_driver_android.h View 1 2 3 5 chunks +13 lines, -2 lines 0 comments Download
M components/gcm_driver/gcm_driver_android.cc View 1 2 3 9 chunks +44 lines, -4 lines 0 comments Download
M components/gcm_driver/gcm_driver_desktop.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/gcm_driver/gcm_driver_desktop.cc View 1 2 3 4 chunks +6 lines, -5 lines 0 comments Download
A components/gcm_driver/gcm_stats_recorder_android.h View 1 2 3 4 5 6 7 1 chunk +85 lines, -0 lines 0 comments Download
A components/gcm_driver/gcm_stats_recorder_android.cc View 1 2 3 4 5 6 7 8 1 chunk +117 lines, -0 lines 0 comments Download
A components/gcm_driver/gcm_stats_recorder_android_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +104 lines, -0 lines 0 comments Download
M components/gcm_driver/gcm_stats_recorder_impl.h View 1 2 3 3 chunks +7 lines, -12 lines 0 comments Download
M components/gcm_driver/gcm_stats_recorder_impl.cc View 1 2 3 4 2 chunks +11 lines, -15 lines 0 comments Download
M components/gcm_driver/gcm_stats_recorder_impl_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M components/gcm_driver/resources/gcm_internals.css View 1 chunk +5 lines, -1 line 0 comments Download
M components/gcm_driver/resources/gcm_internals.html View 4 chunks +113 lines, -102 lines 0 comments Download
M components/gcm_driver/resources/gcm_internals.js View 2 chunks +17 lines, -10 lines 0 comments Download
M components/resources/gcm_driver_resources.grdp View 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/ui/webui/gcm/gcm_internals_ui.cc View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 53 (21 generated)
Peter Beverloo
+jianli, you seem to have done most work on chrome://gcm-internals. Mind taking a look?
5 years ago (2015-12-11 20:24:57 UTC) #2
Peter Beverloo
Hmm, also +zea While most of the failures are due to the tree state, android_chromium_gn_compile_rel ...
5 years ago (2015-12-11 21:09:00 UTC) #4
Nicolas Zea
Which header values need to be shared now? Also I'm kind of surprised this adds ...
5 years ago (2015-12-11 23:41:44 UTC) #5
Peter Beverloo
Basically, Android has an implementation of the GCMDriver, but it interacts with Java (then Google ...
5 years ago (2015-12-12 00:06:21 UTC) #6
Nicolas Zea
Hmm. Yeah, it's been nice to be able to say that basically all of google_apis/gcm ...
5 years ago (2015-12-12 00:22:41 UTC) #7
Peter Beverloo
Nicolas: PTAL, this removes the dependency on the GCM Engine entirely at the cost of ...
5 years ago (2015-12-16 17:34:56 UTC) #8
Nicolas Zea
Most LG, mainly nits https://codereview.chromium.org/1515153003/diff/20001/components/gcm_driver/BUILD.gn File components/gcm_driver/BUILD.gn (right): https://codereview.chromium.org/1515153003/diff/20001/components/gcm_driver/BUILD.gn#newcode175 components/gcm_driver/BUILD.gn:175: sources += [ "gcm_stats_recorder_android_unittest.cc" ] ...
5 years ago (2015-12-16 22:24:32 UTC) #10
Peter Beverloo
+asvitkine Mostly done, PTAL. I included the histograms in histograms.xml since we were counting them, ...
5 years ago (2015-12-17 17:08:24 UTC) #12
Alexei Svitkine (slow)
https://codereview.chromium.org/1515153003/diff/40001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1515153003/diff/40001/tools/metrics/histograms/histograms.xml#newcode14374 tools/metrics/histograms/histograms.xml:14374: +<histogram name="GCM.DataMessageReceived" units="messages"> Looks like this is logged via: ...
5 years ago (2015-12-17 18:20:52 UTC) #13
Nicolas Zea
LGTM
5 years ago (2015-12-17 23:52:14 UTC) #14
Nicolas Zea
Forgot to respond to your question. Still LGTM modulo the rename (and Alexei's comments) https://codereview.chromium.org/1515153003/diff/20001/components/gcm_driver/gcm_driver_android.cc ...
5 years ago (2015-12-17 23:55:14 UTC) #15
jianli
https://codereview.chromium.org/1515153003/diff/40001/components/gcm_driver/gcm_stats_recorder_android.h File components/gcm_driver/gcm_stats_recorder_android.h (right): https://codereview.chromium.org/1515153003/diff/40001/components/gcm_driver/gcm_stats_recorder_android.h#newcode33 components/gcm_driver/gcm_stats_recorder_android.h:33: ~GCMStatsRecorderAndroid(); nit: add virtual https://codereview.chromium.org/1515153003/diff/40001/components/gcm_driver/gcm_stats_recorder_android.h#newcode35 components/gcm_driver/gcm_stats_recorder_android.h:35: bool is_recording() const ...
5 years ago (2015-12-18 00:10:00 UTC) #16
Peter Beverloo
All done. PTAL. +bauerb for the //chrome/browser/ui/webui/ changes. https://codereview.chromium.org/1515153003/diff/40001/components/gcm_driver/gcm_stats_recorder_android.h File components/gcm_driver/gcm_stats_recorder_android.h (right): https://codereview.chromium.org/1515153003/diff/40001/components/gcm_driver/gcm_stats_recorder_android.h#newcode33 components/gcm_driver/gcm_stats_recorder_android.h:33: ~GCMStatsRecorderAndroid(); ...
5 years ago (2015-12-18 17:19:17 UTC) #18
Bernhard Bauer
LGTM w/ a nit, and a potential followup: https://codereview.chromium.org/1515153003/diff/60001/components/gcm_driver/gcm_stats_recorder_android.h File components/gcm_driver/gcm_stats_recorder_android.h (right): https://codereview.chromium.org/1515153003/diff/60001/components/gcm_driver/gcm_stats_recorder_android.h#newcode25 components/gcm_driver/gcm_stats_recorder_android.h:25: class ...
5 years ago (2015-12-18 19:07:07 UTC) #19
Alexei Svitkine (slow)
https://codereview.chromium.org/1515153003/diff/40001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1515153003/diff/40001/tools/metrics/histograms/histograms.xml#newcode14374 tools/metrics/histograms/histograms.xml:14374: +<histogram name="GCM.DataMessageReceived" units="messages"> On 2015/12/18 17:19:17, Peter Beverloo wrote: ...
5 years ago (2015-12-18 19:18:42 UTC) #20
Peter Beverloo
Thank you for the reviews all! I have removed the UMA changes from this patch ...
5 years ago (2015-12-21 13:09:45 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1515153003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1515153003/80001
5 years ago (2015-12-21 13:11:23 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/45926)
5 years ago (2015-12-21 13:14:19 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1515153003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1515153003/100001
5 years ago (2015-12-21 14:12:55 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/152008)
5 years ago (2015-12-21 14:25:42 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1515153003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1515153003/120001
5 years ago (2015-12-21 14:33:21 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/1570)
5 years ago (2015-12-21 14:49:36 UTC) #36
Peter Beverloo
(All these random failures that don't reproduce in my local builds are annoying, even if ...
5 years ago (2015-12-21 15:05:57 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1515153003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1515153003/140001
5 years ago (2015-12-21 15:06:31 UTC) #40
Alexei Svitkine (slow)
Are you planning to follow-up with another CL for the histograms.xml change? I think adding ...
5 years ago (2015-12-21 15:38:13 UTC) #41
Peter Beverloo
On 2015/12/21 15:38:13, Alexei Svitkine (slow) wrote: > Are you planning to follow-up with another ...
5 years ago (2015-12-21 15:40:14 UTC) #42
Alexei Svitkine (slow)
In that case, lgtm % a nit. Thanks! https://codereview.chromium.org/1515153003/diff/140001/components/gcm_driver/gcm_stats_recorder_android.cc File components/gcm_driver/gcm_stats_recorder_android.cc (right): https://codereview.chromium.org/1515153003/diff/140001/components/gcm_driver/gcm_stats_recorder_android.cc#newcode11 components/gcm_driver/gcm_stats_recorder_android.cc:11: const ...
5 years ago (2015-12-21 15:43:54 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/1583)
5 years ago (2015-12-21 15:49:39 UTC) #45
Peter Beverloo
Done. https://codereview.chromium.org/1515153003/diff/140001/components/gcm_driver/gcm_stats_recorder_android.cc File components/gcm_driver/gcm_stats_recorder_android.cc (right): https://codereview.chromium.org/1515153003/diff/140001/components/gcm_driver/gcm_stats_recorder_android.cc#newcode11 components/gcm_driver/gcm_stats_recorder_android.cc:11: const char kSuccess[] = "SUCCESS"; On 2015/12/21 15:43:54, ...
5 years ago (2015-12-21 16:18:58 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1515153003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1515153003/160001
5 years ago (2015-12-21 16:19:18 UTC) #49
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years ago (2015-12-21 17:22:57 UTC) #51
commit-bot: I haz the power
5 years ago (2015-12-21 17:24:02 UTC) #53
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/1ed82985c317377bff21e3f66a20d4ef87ec69b1
Cr-Commit-Position: refs/heads/master@{#366402}

Powered by Google App Engine
This is Rietveld 408576698