[Files.app] metrics.recordEnum should get the one-past-the-end value
commitd7bd1ccb4bbfa17207e1c08303c265e79c61fac9
authoryoshiki <yoshiki@chromium.org>
Tue, 16 Dec 2014 04:48:42 +0000 (15 20:48 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 16 Dec 2014 04:49:16 +0000 (16 04:49 +0000)
treef351bdd0263821dd3e9c76877f3e9318a42b1056
parentd76b099f2a9630435b491faafba64e7cadd10acc
[Files.app] metrics.recordEnum should get the one-past-the-end value

To make it match with the argument of the C++ API.

And this patch fixes the bug, which is that the wrong maximum value is passed to the C++ API if the "opt_validValues" is an array.

BUG=440645
TEST=none

Review URL: https://codereview.chromium.org/801323002

Cr-Commit-Position: refs/heads/master@{#308530}
ui/file_manager/file_manager/foreground/js/metrics_base.js
ui/file_manager/video_player/js/video_player_metrics.js