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

Issue 290023003: sync: Add UI code for per type debug counters (Closed)

Created:
6 years, 7 months ago by rlarocque
Modified:
6 years, 6 months ago
CC:
chromium-reviews, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src
Visibility:
Public.

Description

sync: Add UI code for per type debug counters Adds a new tab to the about:sync page to display the latest per-type counters. These counters will eventually replace the StatusControllers that contain much of the same information. This includes some changes to the C++ SyncInternalsMessageHandler to register to observe these counters as well as some new WebUI to display them. There is a known bug in this code. The StausCounter update logic has not been implemented yet, so the item counts will always be zero. This will be fixed in a future CL. BUG=349301 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274348

Patch Set 1 #

Patch Set 2 : Update some names #

Patch Set 3 : Update some names (retry) #

Total comments: 14

Patch Set 4 : Some review-related changes #

Patch Set 5 : Rebase + some fixes #

Patch Set 6 : Share more code in counter updates #

Total comments: 2

Patch Set 7 : Fix nit #

Patch Set 8 : Rebase #

Total comments: 2

Patch Set 9 : Update comment and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+283 lines, -11 lines) Patch
M build/ios/grit_whitelist.txt View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/sync_internals/chrome_sync.js View 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/resources/sync_internals/sync_index.html View 4 chunks +6 lines, -0 lines 0 comments Download
A chrome/browser/resources/sync_internals/types.css View 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/browser/resources/sync_internals/types.html View 1 2 3 1 chunk +51 lines, -0 lines 0 comments Download
A chrome/browser/resources/sync_internals/types.js View 1 2 3 1 chunk +92 lines, -0 lines 0 comments Download
M chrome/browser/resources/sync_internals_resources.grd View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/DEPS View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/sync_internals_message_handler.h View 1 2 3 4 5 6 7 8 4 chunks +33 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/sync_internals_message_handler.cc View 1 2 3 4 5 6 7 chunks +61 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/sync_internals_ui.cc View 1 chunk +1 line, -0 lines 0 comments Download
M sync/internal_api/public/sessions/status_counters.h View 1 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/public/sessions/status_counters.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
rlarocque
The quest to remove StatusController and the SyncSessionSnapshot continues. Please review. jhawkins is an OWNER ...
6 years, 7 months ago (2014-05-15 20:21:42 UTC) #1
rlarocque
Since this hasn't been reviewed yet, I'm going to take this opportunity to update the ...
6 years, 7 months ago (2014-05-16 22:33:20 UTC) #2
James Hawkins
I'm not an owner of sync_internals.
6 years, 7 months ago (2014-05-19 02:55:32 UTC) #3
rlarocque
On 2014/05/19 02:55:32, James Hawkins wrote: > I'm not an owner of sync_internals. Good point. ...
6 years, 7 months ago (2014-05-19 17:15:41 UTC) #4
rlarocque
Tim is out this week, and no one on the sync team knows JavaScript well ...
6 years, 7 months ago (2014-05-22 20:24:08 UTC) #5
maniscalco
Here's my feedback. Of course, I don't really know javascript so don't count on me ...
6 years, 7 months ago (2014-05-23 00:54:59 UTC) #6
rlarocque
Patch updated. https://codereview.chromium.org/290023003/diff/40001/chrome/browser/resources/sync_internals/types.html File chrome/browser/resources/sync_internals/types.html (right): https://codereview.chromium.org/290023003/diff/40001/chrome/browser/resources/sync_internals/types.html#newcode18 chrome/browser/resources/sync_internals/types.html:18: <th>Server Overwrite Conflict</th> On 2014/05/23 00:55:00, maniscalco ...
6 years, 6 months ago (2014-05-27 20:13:25 UTC) #7
maniscalco
https://codereview.chromium.org/290023003/diff/40001/chrome/browser/resources/sync_internals/types.html File chrome/browser/resources/sync_internals/types.html (right): https://codereview.chromium.org/290023003/diff/40001/chrome/browser/resources/sync_internals/types.html#newcode30 chrome/browser/resources/sync_internals/types.html:30: <td jscontent="counters.numEntries || 0">0</td> I see. Thanks for the ...
6 years, 6 months ago (2014-05-27 20:31:07 UTC) #8
rlarocque
Implemented the helper function.
6 years, 6 months ago (2014-05-28 00:01:53 UTC) #9
maniscalco
lgtm with one nit https://codereview.chromium.org/290023003/diff/100001/chrome/browser/ui/webui/sync_internals_message_handler.h File chrome/browser/ui/webui/sync_internals_message_handler.h (right): https://codereview.chromium.org/290023003/diff/100001/chrome/browser/ui/webui/sync_internals_message_handler.h#newcode78 chrome/browser/ui/webui/sync_internals_message_handler.h:78: const std::string counter_type, nit: looks ...
6 years, 6 months ago (2014-05-28 00:05:33 UTC) #10
rlarocque
https://codereview.chromium.org/290023003/diff/100001/chrome/browser/ui/webui/sync_internals_message_handler.h File chrome/browser/ui/webui/sync_internals_message_handler.h (right): https://codereview.chromium.org/290023003/diff/100001/chrome/browser/ui/webui/sync_internals_message_handler.h#newcode78 chrome/browser/ui/webui/sync_internals_message_handler.h:78: const std::string counter_type, On 2014/05/28 00:05:34, maniscalco wrote: > ...
6 years, 6 months ago (2014-05-28 00:07:57 UTC) #11
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 6 months ago (2014-05-28 20:45:06 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/290023003/120001
6 years, 6 months ago (2014-05-28 20:46:12 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 6 months ago (2014-05-28 21:43:14 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-28 21:50:21 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/70248)
6 years, 6 months ago (2014-05-28 21:50:22 UTC) #16
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 6 months ago (2014-05-30 18:48:45 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/290023003/130001
6 years, 6 months ago (2014-05-30 22:32:47 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 6 months ago (2014-05-31 01:35:25 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-31 01:38:58 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/70830)
6 years, 6 months ago (2014-05-31 01:38:58 UTC) #21
rlarocque
On 2014/05/31 01:38:58, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 6 months ago (2014-06-02 17:07:29 UTC) #22
James Hawkins
webui LGTM https://codereview.chromium.org/290023003/diff/130001/chrome/browser/ui/webui/sync_internals_message_handler.h File chrome/browser/ui/webui/sync_internals_message_handler.h (right): https://codereview.chromium.org/290023003/diff/130001/chrome/browser/ui/webui/sync_internals_message_handler.h#newcode76 chrome/browser/ui/webui/sync_internals_message_handler.h:76: // Helper to emit counter updates. Optional, ...
6 years, 6 months ago (2014-06-02 18:22:22 UTC) #23
rlarocque
https://codereview.chromium.org/290023003/diff/130001/chrome/browser/ui/webui/sync_internals_message_handler.h File chrome/browser/ui/webui/sync_internals_message_handler.h (right): https://codereview.chromium.org/290023003/diff/130001/chrome/browser/ui/webui/sync_internals_message_handler.h#newcode76 chrome/browser/ui/webui/sync_internals_message_handler.h:76: // Helper to emit counter updates. On 2014/06/02 18:22:22, ...
6 years, 6 months ago (2014-06-02 18:36:27 UTC) #24
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 6 months ago (2014-06-02 18:36:38 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/290023003/140001
6 years, 6 months ago (2014-06-02 18:37:56 UTC) #26
commit-bot: I haz the power
6 years, 6 months ago (2014-06-02 22:16:10 UTC) #27
Message was sent while issue was closed.
Change committed as 274348

Powered by Google App Engine
This is Rietveld 408576698