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

Issue 2872023002: [Sync] Add a simple UI to sync-internals to create UserEvents. (Closed)

Created:
3 years, 7 months ago by skym
Modified:
3 years, 7 months ago
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Add a simple UI to sync-internals to create UserEvents. Very simple UI and plumbing to create UserEvents from chrome://sync-internals. Since there are not currently any defined event types, we cannot do anything interesting. Currently expose text fields to specify int64 event time and navigation time. Invalid navigation time will result in meaningless event. Tab should be hidden if the feature is not enabled (disabled is the default). BUG=719044 Review-Url: https://codereview.chromium.org/2872023002 Cr-Commit-Position: refs/heads/master@{#474814} Committed: https://chromium.googlesource.com/chromium/src/+/6c146620037bf6c1222d5a0255be9a6ef2ce5137

Patch Set 1 #

Patch Set 2 : Self review. #

Total comments: 6

Patch Set 3 : Updates for Patrick. #

Total comments: 10

Patch Set 4 : Updates for dbeam. #

Patch Set 5 : Fixed unittests. #

Total comments: 14

Patch Set 6 : More updates for dbeam. #

Patch Set 7 : Rebase #

Patch Set 8 : Switch from modifying display style to adding/removing hidden attribute. #

Total comments: 4

Patch Set 9 : Rebase and updates for dbeam. #

Patch Set 10 : Actually remove tab from hidden selector. #

Patch Set 11 : Add per-file OWNERS rule for components/resource/sync_driver_resources.grdp #

Patch Set 12 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -8 lines) Patch
M chrome/browser/ui/webui/sync_internals_message_handler.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/sync_internals_message_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +57 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/sync_internals_message_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/sync_internals_ui.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M components/resources/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M components/resources/sync_driver_resources.grdp View 1 2 3 1 chunk +8 lines, -7 lines 0 comments Download
M components/sync/driver/about_sync_util.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M components/sync/driver/about_sync_util.cc View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M components/sync/driver/resources/chrome_sync.js View 1 2 3 4 5 6 7 8 3 chunks +20 lines, -0 lines 0 comments Download
M components/sync/driver/resources/index.html View 1 2 3 4 5 6 7 8 9 4 chunks +9 lines, -0 lines 0 comments Download
M components/sync/driver/resources/sync_index.js View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
A components/sync/driver/resources/user_events.html View 1 chunk +3 lines, -0 lines 0 comments Download
A components/sync/driver/resources/user_events.js View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 49 (31 generated)
skym
PTAL components/sync/* - pnoland@ chrome/browser/ui/webui/* and components/resources/* - dbeam@
3 years, 7 months ago (2017-05-09 23:29:27 UTC) #5
Patrick Noland
https://codereview.chromium.org/2872023002/diff/20001/chrome/browser/ui/webui/sync_internals_message_handler.cc File chrome/browser/ui/webui/sync_internals_message_handler.cc (right): https://codereview.chromium.org/2872023002/diff/20001/chrome/browser/ui/webui/sync_internals_message_handler.cc#newcode45 chrome/browser/ui/webui/sync_internals_message_handler.cc:45: int64_t IndexToInt64(const base::ListValue* list, int index) { From the ...
3 years, 7 months ago (2017-05-09 23:46:23 UTC) #6
skym
Updates for Patrick. https://codereview.chromium.org/2872023002/diff/20001/chrome/browser/ui/webui/sync_internals_message_handler.cc File chrome/browser/ui/webui/sync_internals_message_handler.cc (right): https://codereview.chromium.org/2872023002/diff/20001/chrome/browser/ui/webui/sync_internals_message_handler.cc#newcode45 chrome/browser/ui/webui/sync_internals_message_handler.cc:45: int64_t IndexToInt64(const base::ListValue* list, int index) ...
3 years, 7 months ago (2017-05-10 00:06:46 UTC) #7
Patrick Noland
lgtm
3 years, 7 months ago (2017-05-10 00:08:14 UTC) #8
skym
Friendly ping dbeam@
3 years, 7 months ago (2017-05-12 18:45:18 UTC) #9
Dan Beam
https://codereview.chromium.org/2872023002/diff/40001/chrome/browser/ui/webui/sync_internals_message_handler.cc File chrome/browser/ui/webui/sync_internals_message_handler.cc (right): https://codereview.chromium.org/2872023002/diff/40001/chrome/browser/ui/webui/sync_internals_message_handler.cc#newcode205 chrome/browser/ui/webui/sync_internals_message_handler.cc:205: web_ui()->CallJavascriptFunctionUnsafe( can we use the safe version instead? https://codereview.chromium.org/2872023002/diff/40001/components/resources/sync_driver_resources.grdp ...
3 years, 7 months ago (2017-05-16 03:35:52 UTC) #14
skym
Updates for dbeam@ https://codereview.chromium.org/2872023002/diff/40001/chrome/browser/ui/webui/sync_internals_message_handler.cc File chrome/browser/ui/webui/sync_internals_message_handler.cc (right): https://codereview.chromium.org/2872023002/diff/40001/chrome/browser/ui/webui/sync_internals_message_handler.cc#newcode205 chrome/browser/ui/webui/sync_internals_message_handler.cc:205: web_ui()->CallJavascriptFunctionUnsafe( On 2017/05/16 03:35:51, Dan Beam ...
3 years, 7 months ago (2017-05-16 19:26:49 UTC) #19
Dan Beam
https://codereview.chromium.org/2872023002/diff/80001/chrome/browser/ui/webui/sync_internals_message_handler.cc File chrome/browser/ui/webui/sync_internals_message_handler.cc (right): https://codereview.chromium.org/2872023002/diff/80001/chrome/browser/ui/webui/sync_internals_message_handler.cc#newcode51 chrome/browser/ui/webui/sync_internals_message_handler.cc:51: } no curlies https://codereview.chromium.org/2872023002/diff/80001/chrome/browser/ui/webui/sync_internals_message_handler.cc#newcode89 chrome/browser/ui/webui/sync_internals_message_handler.cc:89: } you probably want ...
3 years, 7 months ago (2017-05-16 22:40:54 UTC) #22
skym
More updates for dbeam, split out some refactoring of SyncInternalsMessageHandler into https://codereview.chromium.org/2898723003/ , which simplifies ...
3 years, 7 months ago (2017-05-22 21:55:48 UTC) #26
Dan Beam
https://codereview.chromium.org/2872023002/diff/40001/components/sync/driver/resources/sync_index.js File components/sync/driver/resources/sync_index.js (right): https://codereview.chromium.org/2872023002/diff/40001/components/sync/driver/resources/sync_index.js#newcode17 components/sync/driver/resources/sync_index.js:17: document.getElementById('sync-user-events-tab').style.display = display; On 2017/05/16 19:26:49, skym wrote: > ...
3 years, 7 months ago (2017-05-22 22:15:49 UTC) #29
skym
https://codereview.chromium.org/2872023002/diff/40001/components/sync/driver/resources/sync_index.js File components/sync/driver/resources/sync_index.js (right): https://codereview.chromium.org/2872023002/diff/40001/components/sync/driver/resources/sync_index.js#newcode17 components/sync/driver/resources/sync_index.js:17: document.getElementById('sync-user-events-tab').style.display = display; On 2017/05/22 22:15:49, Dan Beam wrote: ...
3 years, 7 months ago (2017-05-22 22:55:46 UTC) #31
Dan Beam
lgtm i'll make sure to keep looking at your dependent patchset, though https://codereview.chromium.org/2872023002/diff/140001/components/sync/driver/resources/chrome_sync.js File components/sync/driver/resources/chrome_sync.js ...
3 years, 7 months ago (2017-05-22 23:44:47 UTC) #33
jochen (gone - plz use gerrit)
would it make sense to make //components/sync/OWNERS also own //components/resource/sync_driver_resources.grdp?
3 years, 7 months ago (2017-05-23 11:16:58 UTC) #36
skym
On 2017/05/23 11:16:58, jochen wrote: > would it make sense to make //components/sync/OWNERS also own ...
3 years, 7 months ago (2017-05-24 00:20:06 UTC) #38
skym
Updates for dbeam and jochen. https://codereview.chromium.org/2872023002/diff/140001/components/sync/driver/resources/chrome_sync.js File components/sync/driver/resources/chrome_sync.js (right): https://codereview.chromium.org/2872023002/diff/140001/components/sync/driver/resources/chrome_sync.js#newcode88 components/sync/driver/resources/chrome_sync.js:88: * Sends data to ...
3 years, 7 months ago (2017-05-24 00:20:25 UTC) #39
jochen (gone - plz use gerrit)
lgtm
3 years, 7 months ago (2017-05-24 19:38:05 UTC) #43
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/2872023002/220001
3 years, 7 months ago (2017-05-25 19:58:46 UTC) #46
commit-bot: I haz the power
3 years, 7 months ago (2017-05-25 21:39:23 UTC) #49
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/6c146620037bf6c1222d5a0255be...

Powered by Google App Engine
This is Rietveld 408576698