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

Issue 1022423005: Move view change analytics tracking into DirectoryModel where implementation details can be hidden. (Closed)

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

Description

Move view change analytics tracking into DirectoryModel where implementation details can be hidden. Include certain qualifications in the view names reported to analytics, like 'with-media-dir', or the FSP provider extension id. Background: Note there was a potential race condition relating to sendAppView and other events. In order to qualify events by view, we needed to be certain to send appView before any other activity that might be kicked off by a directory change event (like importing). BUG=None TEST=manual Committed: https://crrev.com/c0fdb3e0566d3e81134c56e618b2577a8a15b549 Cr-Commit-Position: refs/heads/master@{#322197}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Use slashes to separate view names from 'extra info' #

Total comments: 12

Patch Set 3 : Respond to review comments. #

Total comments: 12

Patch Set 4 : Respond to review comments. #

Patch Set 5 : Add FSP extension whitelist so we can report names to analytics rather than extension ids for provi… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -42 lines) Patch
M ui/file_manager/file_manager/common/js/importer_common.js View 1 2 3 4 4 chunks +101 lines, -2 lines 0 comments Download
M ui/file_manager/file_manager/common/js/importer_common_unittest.js View 1 2 3 chunks +8 lines, -5 lines 0 comments Download
M ui/file_manager/file_manager/common/js/metrics_events.js View 1 2 3 4 4 chunks +38 lines, -5 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/directory_model.js View 1 2 3 4 5 chunks +87 lines, -16 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/file_manager.js View 2 chunks +2 lines, -14 lines 0 comments Download

Messages

Total messages: 24 (6 generated)
Steve McKay
Use slashes to separate view names from 'extra info'
5 years, 9 months ago (2015-03-23 20:13:44 UTC) #2
Steve McKay
https://codereview.chromium.org/1022423005/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/1022423005/diff/1/ui/file_manager/file_manager/common/js/importer_common.js#newcode407 ui/file_manager/file_manager/common/js/importer_common.js:407: importer.listEntries_ = function(directory, callback) { Note, I had previously ...
5 years, 9 months ago (2015-03-23 20:15:51 UTC) #3
mtomasz
We can put the utility in ui/file_manager/file_manager/common/js/util.js, so we don't have dependency on importer code ...
5 years, 9 months ago (2015-03-24 01:34:58 UTC) #4
mtomasz
lgtm with nits if performance concerns are addressed/resolved.
5 years, 9 months ago (2015-03-24 01:35:26 UTC) #5
Steve McKay
Respond to review comments.
5 years, 9 months ago (2015-03-24 20:04:53 UTC) #6
Steve McKay
On 2015/03/24 20:04:53, Steve McKay wrote: > Respond to review comments. I don't know what ...
5 years, 9 months ago (2015-03-24 20:05:49 UTC) #7
Steve McKay
Oh, and my responses (dones). https://codereview.chromium.org/1022423005/diff/20001/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/1022423005/diff/20001/ui/file_manager/file_manager/common/js/importer_common.js#newcode204 ui/file_manager/file_manager/common/js/importer_common.js:204: importer.hasMediaDirectory = function(directory) { ...
5 years, 9 months ago (2015-03-24 22:39:20 UTC) #8
Steve McKay
https://codereview.chromium.org/1022423005/diff/20001/ui/file_manager/file_manager/foreground/js/directory_model.js File ui/file_manager/file_manager/foreground/js/directory_model.js (right): https://codereview.chromium.org/1022423005/diff/20001/ui/file_manager/file_manager/foreground/js/directory_model.js#newcode1003 ui/file_manager/file_manager/foreground/js/directory_model.js:1003: // TODO(smckay): Can we supply a human readable name? ...
5 years, 9 months ago (2015-03-24 23:49:22 UTC) #9
mtomasz
On 2015/03/24 20:05:49, Steve McKay wrote: > On 2015/03/24 20:04:53, Steve McKay wrote: > > ...
5 years, 9 months ago (2015-03-25 00:33:46 UTC) #10
mtomasz
lgtm with minor nits https://codereview.chromium.org/1022423005/diff/40001/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/1022423005/diff/40001/ui/file_manager/file_manager/common/js/importer_common.js#newcode209 ui/file_manager/file_manager/common/js/importer_common.js:209: if (results.some(function(hasDirectory) {return hasDirectory})) { ...
5 years, 9 months ago (2015-03-25 00:40:13 UTC) #11
Steve McKay
Dones. https://codereview.chromium.org/1022423005/diff/40001/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/1022423005/diff/40001/ui/file_manager/file_manager/common/js/importer_common.js#newcode209 ui/file_manager/file_manager/common/js/importer_common.js:209: if (results.some(function(hasDirectory) {return hasDirectory})) { On 2015/03/25 00:40:13, ...
5 years, 9 months ago (2015-03-25 16:48:20 UTC) #12
Steve McKay
Respond to review comments.
5 years, 9 months ago (2015-03-25 16:53:58 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1022423005/60001
5 years, 9 months ago (2015-03-25 16:55:48 UTC) #16
Steve McKay
Add FSP extension whitelist so we can report names to analytics rather than extension ids ...
5 years, 9 months ago (2015-03-25 17:54:35 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1022423005/80001
5 years, 9 months ago (2015-03-25 17:55:04 UTC) #21
Steve McKay
I put this on submitque with the addition of whitelist for provided files system names. ...
5 years, 9 months ago (2015-03-25 17:56:06 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 9 months ago (2015-03-25 18:39:51 UTC) #23
commit-bot: I haz the power
5 years, 9 months ago (2015-03-25 18:41:17 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c0fdb3e0566d3e81134c56e618b2577a8a15b549
Cr-Commit-Position: refs/heads/master@{#322197}

Powered by Google App Engine
This is Rietveld 408576698