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

Issue 12820010: sync: Define histogram ints for model types (Closed)

Created:
7 years, 9 months ago by rlarocque
Modified:
7 years, 9 months ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, Raghu Simha, haitaol1, akalin, tim (not reviewing)
Visibility:
Public.

Description

sync: Define histogram ints for model types The common practice of using enums directly when counting histograms works only if the enums' values never change. Unfortunately, we insert into the middle of the list of ModelTypes all the time. Rather than change the way we manage the list of model type enums, we decided to separate the model types values from those used when reporting histograms. This change defines a mapping from model types to integers. These integers should be kept in sync with integer to label mapping defined in histograms.xml. This mapping is often similar to, but does not necessarily match, the int values of the enums. BUG=190015 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188314

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -13 lines) Patch
M chrome/browser/sync/glue/bookmark_model_associator.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/data_type_controller.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/frontend_data_type_controller.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/model_association_manager.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/non_frontend_data_type_controller.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/non_ui_data_type_controller.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/ui_data_type_controller.cc View 1 chunk +2 lines, -1 line 0 comments Download
M sync/internal_api/public/base/model_type.h View 1 2 chunks +5 lines, -5 lines 0 comments Download
M sync/syncable/model_type.cc View 1 chunk +65 lines, -0 lines 0 comments Download
M sync/syncable/model_type_unittest.cc View 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
rlarocque
Here's the fix we talked about. Please review. I'm not sure how to prevent people ...
7 years, 9 months ago (2013-03-14 23:34:03 UTC) #1
Nicolas Zea
LGTM https://codereview.chromium.org/12820010/diff/1/sync/internal_api/public/base/model_type.h File sync/internal_api/public/base/model_type.h (right): https://codereview.chromium.org/12820010/diff/1/sync/internal_api/public/base/model_type.h#newcode52 sync/internal_api/public/base/model_type.h:52: // WARNING: Modifying the order of these types ...
7 years, 9 months ago (2013-03-14 23:43:09 UTC) #2
rlarocque
https://codereview.chromium.org/12820010/diff/1/sync/internal_api/public/base/model_type.h File sync/internal_api/public/base/model_type.h (right): https://codereview.chromium.org/12820010/diff/1/sync/internal_api/public/base/model_type.h#newcode52 sync/internal_api/public/base/model_type.h:52: // WARNING: Modifying the order of these types or ...
7 years, 9 months ago (2013-03-15 00:31:09 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/12820010/3001
7 years, 9 months ago (2013-03-15 00:34:43 UTC) #4
commit-bot: I haz the power
7 years, 9 months ago (2013-03-15 09:13:57 UTC) #5
Message was sent while issue was closed.
Change committed as 188314

Powered by Google App Engine
This is Rietveld 408576698