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

Issue 918713003: Files.app: Add analytics code to instrument cloud import flows. (Closed)

Created:
5 years, 10 months ago by Ben Kwa
Modified:
5 years, 10 months ago
Reviewers:
mtomasz, Steve McKay
CC:
chromium-reviews, tfarina, rginda+watch_chromium.org, mtomasz+watch_chromium.org, sankarbalaji
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Files.app: Add analytics code to instrument cloud import flows. DuplicateFinder now aggregates stats over its lifetime. MediaImportHandler was changed to create a DuplicateFinder instance per import, so stats relating to duplicate-finding are reported per import session (instead of per-file). Other changes are just straight-up addition of analytics logging code. BUG=457736 Committed: https://crrev.com/fbfba350a7a163a73daf982dc90648ab6cddf64b Cr-Commit-Position: refs/heads/master@{#316913}

Patch Set 1 #

Total comments: 34

Patch Set 2 : Address feedback. #

Total comments: 32

Patch Set 3 : Reorg/rename metrics events. Fix a metrics loading bug. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+449 lines, -66 lines) Patch
M ui/file_manager/file_manager/background/js/background.js View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M ui/file_manager/file_manager/background/js/compiled_resources.gyp View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/background/js/duplicate_finder.js View 1 5 chunks +69 lines, -8 lines 0 comments Download
M ui/file_manager/file_manager/background/js/file_operation_util.js View 1 chunk +1 line, -1 line 0 comments Download
M ui/file_manager/file_manager/background/js/media_import_handler.js View 1 2 12 chunks +65 lines, -9 lines 0 comments Download
M ui/file_manager/file_manager/background/js/media_import_handler_unittest.html View 1 2 chunks +5 lines, -1 line 0 comments Download
M ui/file_manager/file_manager/background/js/media_import_handler_unittest.js View 1 2 3 chunks +8 lines, -5 lines 0 comments Download
M ui/file_manager/file_manager/background/js/media_scanner.js View 1 2 7 chunks +55 lines, -27 lines 0 comments Download
M ui/file_manager/file_manager/background/js/media_scanner_unittest.js View 1 chunk +1 line, -1 line 0 comments Download
M ui/file_manager/file_manager/background/js/mock_media_scanner.js View 1 3 chunks +13 lines, -10 lines 0 comments Download
M ui/file_manager/file_manager/background/js/test_duplicate_finder.js View 1 1 chunk +24 lines, -0 lines 0 comments Download
A ui/file_manager/file_manager/common/js/metrics_events.js View 1 2 1 chunk +97 lines, -0 lines 0 comments Download
A ui/file_manager/file_manager/common/js/test_tracker.js View 1 1 chunk +74 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/compiled_resources.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/file_manager.js View 1 2 3 chunks +8 lines, -1 line 0 comments Download
M ui/file_manager/file_manager/foreground/js/import_controller.js View 1 2 5 chunks +11 lines, -2 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/main_scripts.js View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/main.html View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/file_manager/file_manager/manifest.json View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager_resources.grd View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
Ben Kwa
5 years, 10 months ago (2015-02-11 20:37:17 UTC) #2
Ben Kwa
cc Sankar for privacy review.
5 years, 10 months ago (2015-02-11 20:40:15 UTC) #3
mtomasz
lgtm with nits https://codereview.chromium.org/918713003/diff/1/ui/file_manager/file_manager/background/js/background.js File ui/file_manager/file_manager/background/js/background.js (right): https://codereview.chromium.org/918713003/diff/1/ui/file_manager/file_manager/background/js/background.js#newcode24 ui/file_manager/file_manager/background/js/background.js:24: var analyticsService = analytics.getService('Files.app'); nit: We ...
5 years, 10 months ago (2015-02-12 01:51:03 UTC) #4
Steve McKay
LGTM w/ nits. https://codereview.chromium.org/918713003/diff/1/ui/file_manager/file_manager/background/js/duplicate_finder.js File ui/file_manager/file_manager/background/js/duplicate_finder.js (right): https://codereview.chromium.org/918713003/diff/1/ui/file_manager/file_manager/background/js/duplicate_finder.js#newcode27 ui/file_manager/file_manager/background/js/duplicate_finder.js:27: importer.DuplicateFinder.Factory = function() {}; Don't introduce ...
5 years, 10 months ago (2015-02-12 17:59:14 UTC) #5
Steve McKay
https://codereview.chromium.org/918713003/diff/1/ui/file_manager/file_manager/common/js/importer_common.js File ui/file_manager/file_manager/common/js/importer_common.js (right): https://codereview.chromium.org/918713003/diff/1/ui/file_manager/file_manager/common/js/importer_common.js#newcode698 ui/file_manager/file_manager/common/js/importer_common.js:698: USER_TYPE_GENERAL: { We should double check with the GA ...
5 years, 10 months ago (2015-02-12 18:16:35 UTC) #6
Ben Kwa
Done, PTAL. Thanks! https://codereview.chromium.org/918713003/diff/1/ui/file_manager/file_manager/background/js/background.js File ui/file_manager/file_manager/background/js/background.js (right): https://codereview.chromium.org/918713003/diff/1/ui/file_manager/file_manager/background/js/background.js#newcode24 ui/file_manager/file_manager/background/js/background.js:24: var analyticsService = analytics.getService('Files.app'); On 2015/02/12 ...
5 years, 10 months ago (2015-02-17 23:01:30 UTC) #8
Steve McKay
We need to add an OWNERS file for metrics_events, but can do that in a ...
5 years, 10 months ago (2015-02-17 23:47:51 UTC) #9
Ben Kwa
https://codereview.chromium.org/918713003/diff/20001/ui/file_manager/file_manager/common/js/metrics_events.js File ui/file_manager/file_manager/common/js/metrics_events.js (right): https://codereview.chromium.org/918713003/diff/20001/ui/file_manager/file_manager/common/js/metrics_events.js#newcode9 ui/file_manager/file_manager/common/js/metrics_events.js:9: metrics.Categories = { On 2015/02/17 23:47:51, Steve McKay wrote: ...
5 years, 10 months ago (2015-02-17 23:54:24 UTC) #10
Steve McKay
On 2015/02/17 23:54:24, Ben Kwa wrote: > https://codereview.chromium.org/918713003/diff/20001/ui/file_manager/file_manager/common/js/metrics_events.js > File ui/file_manager/file_manager/common/js/metrics_events.js (right): > > https://codereview.chromium.org/918713003/diff/20001/ui/file_manager/file_manager/common/js/metrics_events.js#newcode9 ...
5 years, 10 months ago (2015-02-17 23:56:08 UTC) #11
Ben Kwa
https://codereview.chromium.org/918713003/diff/20001/ui/file_manager/file_manager/background/js/media_import_handler.js File ui/file_manager/file_manager/background/js/media_import_handler.js (right): https://codereview.chromium.org/918713003/diff/20001/ui/file_manager/file_manager/background/js/media_import_handler.js#newcode289 ui/file_manager/file_manager/background/js/media_import_handler.js:289: this.tracker_.send(metrics.Events.IMPORT_FILE_COUNT On 2015/02/17 23:47:50, Steve McKay wrote: > Report ...
5 years, 10 months ago (2015-02-18 22:23:02 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/918713003/40001
5 years, 10 months ago (2015-02-18 22:28:28 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 10 months ago (2015-02-18 23:12:14 UTC) #15
commit-bot: I haz the power
5 years, 10 months ago (2015-02-18 23:12:41 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/fbfba350a7a163a73daf982dc90648ab6cddf64b
Cr-Commit-Position: refs/heads/master@{#316913}

Powered by Google App Engine
This is Rietveld 408576698