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

Issue 1237493003: Uses Hash values for sparse histograms for InputMethod.ID statistics. (Closed)

Created:
5 years, 5 months ago by Shu Chen
Modified:
5 years, 5 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, asvitkine+watch_chromium.org, nona+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Uses Hash values for sparse histograms for InputMethod.ID statistics. So that the ID mapping can be stable when adding more and more input methods. BUG=352459 TEST=None Committed: https://crrev.com/254e75d880369bf49bdf0e8ccc400ab71f6f2fee Cr-Commit-Position: refs/heads/master@{#339225}

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 10

Patch Set 4 : addressed comments. #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -31 lines) Patch
M chrome/browser/chromeos/input_method/input_method_manager_impl.h View 1 2 3 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_manager_impl.cc View 1 2 3 3 chunks +3 lines, -21 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 2 chunks +197 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
Shu Chen
Guys, can you please review this? Thanks
5 years, 5 months ago (2015-07-16 08:17:01 UTC) #2
Seigo Nonaka
Please address one nit style error. https://codereview.chromium.org/1237493003/diff/20001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc File chrome/browser/chromeos/input_method/input_method_manager_impl.cc (right): https://codereview.chromium.org/1237493003/diff/20001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc#newcode870 chrome/browser/chromeos/input_method/input_method_manager_impl.cc:870: stat_id_map_[id] = (int)base::SuperFastHash(id.c_str(), ...
5 years, 5 months ago (2015-07-16 08:24:47 UTC) #3
Seigo Nonaka
lgtm, please wait Ilya's review.
5 years, 5 months ago (2015-07-16 08:25:03 UTC) #4
Shu Chen
Thanks for the review! https://codereview.chromium.org/1237493003/diff/20001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc File chrome/browser/chromeos/input_method/input_method_manager_impl.cc (right): https://codereview.chromium.org/1237493003/diff/20001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc#newcode870 chrome/browser/chromeos/input_method/input_method_manager_impl.cc:870: stat_id_map_[id] = (int)base::SuperFastHash(id.c_str(), id.length()); On ...
5 years, 5 months ago (2015-07-16 08:57:27 UTC) #5
Ilya Sherman
Thanks! https://codereview.chromium.org/1237493003/diff/40001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc File chrome/browser/chromeos/input_method/input_method_manager_impl.cc (right): https://codereview.chromium.org/1237493003/diff/40001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc#newcode871 chrome/browser/chromeos/input_method/input_method_manager_impl.cc:871: static_cast<int>(base::SuperFastHash(id.c_str(), id.length())); nit: Any reason not to call ...
5 years, 5 months ago (2015-07-17 01:43:58 UTC) #6
Shu Chen
https://codereview.chromium.org/1237493003/diff/40001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc File chrome/browser/chromeos/input_method/input_method_manager_impl.cc (right): https://codereview.chromium.org/1237493003/diff/40001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc#newcode871 chrome/browser/chromeos/input_method/input_method_manager_impl.cc:871: static_cast<int>(base::SuperFastHash(id.c_str(), id.length())); On 2015/07/17 01:43:58, Ilya Sherman (Away 7.18-8.03) ...
5 years, 5 months ago (2015-07-17 03:55:50 UTC) #7
Ilya Sherman
LGTM, thanks. https://codereview.chromium.org/1237493003/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1237493003/diff/80001/tools/metrics/histograms/histograms.xml#newcode13731 tools/metrics/histograms/histograms.xml:13731: + This is deprecated since M46, InputMethod.ID2 ...
5 years, 5 months ago (2015-07-17 04:40:12 UTC) #8
Shu Chen
https://codereview.chromium.org/1237493003/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1237493003/diff/80001/tools/metrics/histograms/histograms.xml#newcode13731 tools/metrics/histograms/histograms.xml:13731: + This is deprecated since M46, InputMethod.ID2 is used ...
5 years, 5 months ago (2015-07-17 05:39:30 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1237493003/80002
5 years, 5 months ago (2015-07-17 05:39:49 UTC) #12
commit-bot: I haz the power
Committed patchset #6 (id:80002)
5 years, 5 months ago (2015-07-17 06:45:39 UTC) #13
commit-bot: I haz the power
5 years, 5 months ago (2015-07-17 06:46:49 UTC) #14
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/254e75d880369bf49bdf0e8ccc400ab71f6f2fee
Cr-Commit-Position: refs/heads/master@{#339225}

Powered by Google App Engine
This is Rietveld 408576698